woocommerce_hooked_blocks_theme_include_list

woocommerce_hooked_blocks_theme_include_list

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.2.3

apply_filters('woocommerce_hooked_blocks_theme_include_list') is found 1 times:

  • /includes/wc-update-functions.php line 2755
    	 * We are applying this filter to allow for the list to be extended by third-parties who were already using it.
    	 *
    	 * @since 8.4.0
    	 */
    	$theme_include_list               = apply_filters( 'woocommerce_hooked_blocks_theme_include_list', array( 'Twenty Twenty-Four', 'Twenty Twenty-Three', 'Twenty Twenty-Two', 'Tsubaki', 'Zaino', 'Thriving Artist', 'Amulet', 'Tazza' ) );
    	$active_theme_name                = wp_get_theme()->get( 'Name' );
    	$should_set_hooked_blocks_version = in_array( $active_theme_name, $theme_include_list, true );
    
    	if ( $should_set_hooked_blocks_version ) {
    		// Set 8.4.0 as the version for existing stores that are using a theme that supports the Block Hooks API.
    		// This will ensure that the Block Hooks API is enabled for these stores and works as expected.