fc_js_settings
Type: Filter
Filters the JavaScript settings passed to the Fluid Checkout frontend script.
Signature
apply_filters( 'fc_js_settings', $settings );
Parameters
| Name | Type | Description |
|---|---|---|
$settings | array | Settings to output. |
Since
1.2.0
Source: inc/enqueue.php
Examples
add_filter( 'fc_js_settings',
/**
* Add custom JavaScript settings.
*
* @param array $settings Settings to output.
* @return array Filtered value.
*/
function( $settings ) {
$settings['customFeature'] = array(
'enabled' => true,
);
return $settings;
},
10
);