fc_pro_enable_compat_plugin_{plugin_slug}
Type: Filter
Filters whether to load the compatibility module for a specific plugin.
The dynamic portion of the hook name, $plugin_slug, is the plugin directory slug (the folder name, or the file name without .php for single-file plugins). Anything other than true skips loading that compatibility module. The default is true.
Signature
apply_filters( 'fc_pro_enable_compat_plugin_{plugin_slug}', $enabled );
Parameters
| Name | Type | Description |
|---|---|---|
$enabled | bool | Whether to load the compatibility module for a specific plugin. Default true. |
Since
1.4.1
Source: fluid-checkout-pro.php
Examples
In fc_pro_enable_compat_plugin_{plugin_slug}, woocommerce-subscriptions replaces {plugin_slug}.
add_filter( 'fc_pro_enable_compat_plugin_woocommerce-subscriptions',
/**
* Disable specific plugin compatibility.
*
* @param bool $enabled Whether to load the compatibility module for a specific plugin. Default true.
* @return bool Filtered value.
*/
function( $enabled ) {
return false;
},
10
);