Filter

pre view settings

apply_filters( 'floorplan_settings',
array $view_settings,
int $floorplan_id,
array $http_accept_language );

Filters the settings per floorplan view.

Parameters

$view_settings
(array) The view settings.
$floorplan_id
(int) The floorplan ID.
$http_accept_language
(string) The client language code.

Source

floorplans/includes/class‑pro‑settings.php

More Information

This filter can be used to adjust the view settings, e.g. currency and dimensions. This method takes precedence over shortcode arguments, which in turn takes precedence over the settings saved in the builder.

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

Example

function my_floorplan_settings( $view_settings, $floorplan_id ){

	$view_settings['locale']['currency']['code'] = 'EUR';

	return $view_settings;		
}

add_filter( 'floorplan_settings', 'my_floorplan_settings', 10, 2);
filed under: