fc_pro_enable_compat_checkout_edit_cart_theme_style_{theme_slug}
Type: Filter
Filters whether to load checkout edit-cart compatibility styles for a specific theme.
The dynamic portion of the hook name, $theme_slug, is the active theme directory slug. Both the parent theme (get_template()) and the child theme (get_stylesheet()) are checked. Anything other than true skips loading that compatibility module. The default is true.
Signature
apply_filters( 'fc_pro_enable_compat_checkout_edit_cart_theme_style_{theme_slug}', $enabled );
Parameters
| Name | Type | Description |
|---|---|---|
$enabled | bool | Whether to load checkout edit-cart compatibility styles for a specific theme. Default true. |
Since
1.5.0
Source: inc/enqueue.php
Examples
In fc_pro_enable_compat_checkout_edit_cart_theme_style_{theme_slug}, twentytwentyfive replaces {theme_slug}.
add_filter( 'fc_pro_enable_compat_checkout_edit_cart_theme_style_twentytwentyfive',
/**
* Disable checkout edit cart theme styles for Twenty Twenty-Five.
*
* @param bool $enabled Whether to load checkout edit-cart compatibility styles for a specific theme. Default true.
* @return bool Filtered value.
*/
function( $enabled ) {
return false;
},
10
);