Block Hooks API: Add Amulet theme to the list of allowed themes for Mini Cart auto-insertion (#42899)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Tom Cafferkey 2023-12-20 15:26:21 +00:00 committed by GitHub
parent 0dac985d8e
commit 0ba8f7848d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: minor
Type: add
Auto-inserts Mini Cart block into Amulet theme headers patterns and template parts.

View File

@ -609,7 +609,7 @@ class MiniCart extends AbstractBlock {
*
* @since $VID:$
*/
$theme_include_list = apply_filters( 'woocommerce_blocks_mini_cart_auto_insert_theme_include_list', array( 'Twenty Twenty-Four', 'Twenty Twenty-Three', 'Twenty Twenty-Two', 'Tsubaki', 'Zaino', 'Thriving Artist' ) );
$theme_include_list = apply_filters( 'woocommerce_blocks_mini_cart_auto_insert_theme_include_list', array( 'Twenty Twenty-Four', 'Twenty Twenty-Three', 'Twenty Twenty-Two', 'Tsubaki', 'Zaino', 'Thriving Artist', 'Amulet' ) );
if ( $context && in_array( $active_theme_name, $theme_include_list, true ) ) {
if (