Filter

pre admin settings

apply_filters( 'floorplan_admin_settings',
array $admin_settings,
int $floorplan_id );

Filters the settings specific for the builder in the administrator. These settings will not be saved along with a floorplan.

Parameters

$admin_settings
(array) The administrator settings.
$floorplan_id
(int) The floorplan ID.

Source

floorplans/includes/class‑pro‑settings.php

More Information

This filter can be used to adjust the builder settings, e.g. currency and minimal rotation increment. These settings have no effect on how floorplans are presented on the frontend.

This code should be implemented in PHP. For extra guidance, please see WPBeginner’s tutorial on adding custom code.

Example

function my_floorplan_admin_settings( $admin_settings, $floorplan_id ){

	$admin_settings['locale']['currency']['code'] = 'USD';

	return $admin_settings;		
}

add_filter( 'floorplan_admin_settings', 'my_floorplan_admin_settings', 10, 2);
filed under: