fc_fragments_update_settings
Type: Filter
Filters the fragment-refresh settings passed to the frontend script.
Signature
apply_filters( 'fc_fragments_update_settings', $settings );
Parameters
| Name | Type | Description |
|---|---|---|
$settings | array | Settings to output. |
Since
3.0.4
Source: inc/fragments-refresh.php
Examples
add_filter( 'fc_fragments_update_settings',
/**
* Add custom fragments update settings.
*
* @param array $settings Settings to output.
* @return array Filtered value.
*/
function( $settings ) {
// Add custom settings
$settings['customSetting'] = 'custom-value';
// Return modified settings
return $settings;
},
10
);