Back to list of all filter and action hooks for Address Book for WooCommerce.
Description #
Controls whether Address Book should load compatibility styles for specific pages and plugins.
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_adb_enable_compat_plugin_style_{$plugin_slug} - Other pages: The modifier accepts the following values:
cart,edit_address
- Checkout page: For the checkout page, this modifier does not exist. Use the hook name:
{$plugin_slug}(string) The name of the folder of the plugin. Example:fluid-checkout-pro.
Parameters #
$enabled(bool) Whether the compatibility styles for this plugin should be enabled or not. Defaults totrue.
Examples #
Checkout #
Note that for the checkout page no {$page} modifier is used: fc_adb_enable_compat_plugin_style_{$plugin_slug}
/**
* Disable Checkout plugin style compatibility
*/
add_filter( 'fc_adb_enable_compat_plugin_style_fluid-checkout-pro', '__return_false', 10 );
Cart #
/**
* Disable Cart plugin style compatibility
*/
add_filter( 'fc_adb_enable_compat_cart_plugin_style_fluid-checkout-pro', '__return_false', 10 );
Edit address #
/**
* Disable Edit Address plugin style compatibility
*/
add_filter( 'fc_adb_enable_compat_edit_address_plugin_style_fluid-checkout-pro', '__return_false', 10 );
