Back to list of all filter and action hooks for EU-VAT Assistant.
Description #
Controls whether styles for specific pages and themes should be loaded.
Modifiers #
{$page}
(string) Defines the specific page or context where the compatibility styles apply.- Checkout page: For the checkout page, this modifier does not exist. Use the hook name:
fc_vat_enable_compat_style_{$theme_slug}
- Other pages: The modifier accepts the following values:
account_details
,edit_address
- Checkout page: For the checkout page, this modifier does not exist. Use the hook name:
{$theme_slug}
(string) The name of the folder of the theme. Example:astra
,hello-elementor
Parameters #
$enabled
(bool) Whether the compatibility styles for this theme should be enabled or not. Defaults totrue
.
Examples #
Checkout #
Note that for the checkout page no {$page}
modifier is used: fc_vat_enable_compat_plugin_style_{$plugin_slug}
/**
* Disable style compatibility for a specific theme
*/
add_filter( 'fc_vat_enable_compat_style_hello-elementor', '__return_true', 10 );
Edit address #
/**
* Disable edit address style compatibility for a theme
*/
add_filter( 'fc_vat_enable_compat_edit_address_style_astra', '__return_false', 10 );
Account Details #
/**
* Disable account details style compatibility for a theme
*/
add_filter( 'fc_vat_enable_compat_account_details_style_astra', '__return_false', 10 );