Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.
Prev Previous commit
Next Next commit
remove experimental prefix.
On thinking about this, I don’t think these need to be experimental. They are intentionally provided as escape hatches for hosts/themes that want to opt-in/out so we’ll have to support them when this is shipped (at least until its no longer needed!)
  • Loading branch information
nerrad committed Dec 4, 2023
commit a1bc67840e6294ceea878d75676b8caa25053ee8
4 changes: 2 additions & 2 deletions src/BlockTypes/MiniCart.php
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ public function register_auto_insert( $hooked_blocks, $position, $anchor_block,
*
* @since $VID:$
*/
$pattern_exclude_list = apply_filters( '__experimental_woocommerce_blocks_mini_cart_auto_insert_pattern_exclude_list', [] );
$pattern_exclude_list = apply_filters( 'woocommerce_blocks_mini_cart_auto_insert_pattern_exclude_list', [] );

/**
* A list of theme slugs to execute this with. This is a temporary
Expand All @@ -609,7 +609,7 @@ public function register_auto_insert( $hooked_blocks, $position, $anchor_block,
*
* @since $VID:$
*/
$theme_include_list = apply_filters( '__experimental_woocommerce_blocks_mini_cart_auto_insert_theme_include_list', [ 'Twenty Twenty-Four' ] );
$theme_include_list = apply_filters( 'woocommerce_blocks_mini_cart_auto_insert_theme_include_list', [ 'Twenty Twenty-Four' ] );

if ( $context && in_array( $active_theme_name, $theme_include_list, true ) ) {
if (
Expand Down