woocommerce_hooked_blocks_theme_include_list
woocommerce_hooked_blocks_theme_include_list
Appears in: woocommerce.8.6.0, woocommerce.8.6.1, woocommerce.8.7.0, 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_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.