fc_adb_enable_compat_theme_style_{theme_slug}

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 theme.

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_theme_style_{$theme_slug}
    • Other pages: The modifier accepts the following values:
      cart, edit_address
  • {$theme_slug} (string) The name of the folder of the theme. Example: twentytwentyfive.

Parameters #

  • $enabled (bool) Whether the compatibility styles for this theme should be enabled or not. Defaults to true.

Examples #

Checkout #

Note that for the checkout page no {$page} modifier is used: fc_adb_enable_compat_theme_style_{$theme_slug}

/**
 * Disable Checkout theme style compatibility
 */
add_filter( 'fc_adb_enable_compat_theme_style_twentytwentyfive', '__return_false', 10 );

Cart #

/**
 * Disable Cart theme style compatibility
 */
add_filter( 'fc_adb_enable_compat_cart_theme_style_twentytwentyfive', '__return_false', 10 );

Edit address #

Note that for Edit Address we use only style instead of theme_style.

/**
 * Disable Edit Address theme style compatibility
 */
add_filter( 'fc_adb_enable_compat_edit_address_style_twentytwentyfive', '__return_false', 10 );

What are your feelings

Updated on December 15, 2025