fc_enable_compat_theme_{theme_slug}
Type: Filter
Filters whether to load a theme compatibility class.
The dynamic portion of the hook name, $theme_slug, refers to the active theme directory name from get_template() or get_stylesheet(). Return boolean true to load the compatibility file. Any other value skips it.
Signature
apply_filters( 'fc_enable_compat_theme_{theme_slug}', $value );
Parameters
| Name | Type | Description |
|---|---|---|
$value | bool | Value to filter. Default true. |
Since
2.0.5
Source: fluid-checkout.php
Examples
In fc_enable_compat_theme_{theme_slug}, shoptimizer replaces {theme_slug}.
add_filter( 'fc_enable_compat_theme_shoptimizer',
/**
* Disable compatibility for a specific theme.
*
* @param bool $value Value to filter. Default true.
* @return bool Filtered value.
*/
function( $value ) {
return false;
},
10
);