diff --git a/src/Templates/BlockTemplatesCompatibility.php b/src/Templates/BlockTemplatesCompatibility.php index 6ec946e9043..8177b8bc7ed 100644 --- a/src/Templates/BlockTemplatesCompatibility.php +++ b/src/Templates/BlockTemplatesCompatibility.php @@ -295,7 +295,7 @@ protected function remove_default_hooks() { */ $additional_hook_data = apply_filters( 'woocommerce_blocks_hook_compatibility_additional_data', array() ); - if ( empty( $additional_hook_data ) ) { + if ( empty( $additional_hook_data ) || ! is_array( $additional_hook_data ) ) { return; }