Skip to main content

fc_vat_enable_compat_plugin_style_{plugin_slug}

Type: Filter

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

The dynamic portion of the hook name, $plugin_slug, is the directory name of an active plugin, or the main file name without .php for a single-file plugin. The filter runs for every active plugin. css/compat/plugins/compat-{$plugin_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. No checkout plugin stylesheets ship with EU-VAT Assistant. Germanized for WooCommerce Pro registers a callback on fc_vat_enable_compat_plugin_style_woocommerce-germanized-pro.

Signature​

apply_filters( 'fc_vat_enable_compat_plugin_style_{plugin_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