woocommerce_use_block_notices_in_classic_theme
woocommerce_use_block_notices_in_classic_theme
Appears in: woocommerce.8.8.3, woocommerce.8.9.2, woocommerce.8.9.3, woocommerce.9.0.2, woocommerce.9.1.2, woocommerce.9.1.4, woocommerce.9.2.2, woocommerce.9.2.3
Hook Type: filter
Displaying hooks found in version: woocommerce.9.2.3apply_filters('woocommerce_use_block_notices_in_classic_theme') is found 1 times:
- /src/Blocks/Domain/Services/Notices.php line 54
* @since 8.8.0 * @param bool $use_block_notices_in_classic_theme Whether to use block notices in classic theme. * @return bool */ if ( wp_is_block_theme() || apply_filters( 'woocommerce_use_block_notices_in_classic_theme', false ) ) { add_filter( 'wc_get_template', [ $this, 'get_notices_template' ], 10, 5 ); } } ); add_filter( 'woocommerce_kses_notice_allowed_tags', [ $this, 'add_kses_notice_allowed_tags' ] );