fc_{current_section}_settings
Type: Filter
Filters the settings for one Fluid Checkout admin section.
The dynamic portion of the hook name, $current_section, refers to the settings section slug. The dashboard section slug is an empty string, so the hook name is fc__settings. Possible hook names include:
fc__settings
Signature
apply_filters( 'fc_{current_section}_settings', $settings, $current_section );
Parameters
| Name | Type | Description |
|---|---|---|
$settings | array | Settings to output. |
$current_section | string | Current settings section slug. An empty string is the dashboard section. |
Since
1.3.1
Source: inc/admin/admin-settings-dashboard.php
Examples
In fc_{current_section}_settings, tools replaces {current_section}.
add_filter( 'fc_tools_settings',
/**
* Add custom title with description on tool settings.
*
* @param array $settings Settings to output.
* @param string $current_section Current settings section slug. An empty string is the dashboard section.
* @return array Filtered value.
*/
function( $settings, $current_section ) {
// Add custom tool setting
$settings[] = array(
'title' => __( 'Custom title', 'fluid-checkout' ),
'type' => 'title',
'desc' => 'Custom Description',
'id' => 'fc_checkout_advanced_debug_options',
);
return $settings;
},
10,
2
);