Skip to main content

fc_vat_enable_compat_theme_style_{theme_slug}

Type: Filter

Aliases: fc_vat_enable_compat_theme_style_neighborhood

Filters whether to load the checkout compatibility stylesheet for a theme.

The dynamic portion of the hook name, $theme_slug, is a theme directory slug. The filter runs for the parent theme (get_template()) and the active theme (get_stylesheet()). css/compat/themes/compat-{$theme_slug}.css is loaded only when the filtered value is exactly true and that file exists. Returning anything other than true (for example false) skips it. Checkout, edit-address, and account-details styles are separate filters. Possible hook names include:

  • fc_vat_enable_compat_theme_style_neighborhood

Signature​

apply_filters( 'fc_vat_enable_compat_theme_style_{theme_slug}', $enabled );

Parameters​

NameTypeDescription
$enabledboolWhether to load the stylesheet. Default true. Anything other than true skips it.

Since​

  • 1.0.2

Source​

inc/enqueue.php