fc_pro_enable_compat_checkout_edit_cart_plugin_style_{plugin_slug}
Type: Filter
Filters whether to load checkout edit-cart compatibility styles 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_checkout_edit_cart_plugin_style_{plugin_slug}', $enabled );
Parameters
| Name | Type | Description |
|---|---|---|
$enabled | bool | Whether to load checkout edit-cart compatibility styles for a specific plugin. Default true. |
Since
1.5.0
Source: inc/enqueue.php
Examples
In fc_pro_enable_compat_checkout_edit_cart_plugin_style_{plugin_slug}, woocommerce-subscriptions replaces {plugin_slug}.
add_filter( 'fc_pro_enable_compat_checkout_edit_cart_plugin_style_woocommerce-subscriptions',
/**
* Disable checkout edit cart plugin styles for WooCommerce Subscriptions.
*
* @param bool $enabled Whether to load checkout edit-cart compatibility styles for a specific plugin. Default true.
* @return bool Filtered value.
*/
function( $enabled ) {
return false;
},
10
);