woocommerce_use_block_notices_in_classic_theme

woocommerce_use_block_notices_in_classic_theme

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.8.3

apply_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' ] );