woocommerce_disable_compatibility_layer

woocommerce_disable_compatibility_layer

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_disable_compatibility_layer') is found 2 times:

  • /src/Blocks/Templates/AbstractTemplateCompatibility.php line 37
    				*
    				* @since 7.6.0
    				* @param boolean.
    				*/
    				$is_disabled_compatility_layer = apply_filters( 'woocommerce_disable_compatibility_layer', false );
    
    				if ( $is_disabled_compatility_layer ) {
    					return $parsed_block;
    				}
    
    				return $this->update_render_block_data( $parsed_block, $source_block, $parent_block );
    
  • /src/Blocks/Templates/AbstractTemplateCompatibility.php line 60
    				*
    				* @since 7.6.0
    				* @param boolean.
    				*/
    				$is_disabled_compatibility_layer = apply_filters( 'woocommerce_disable_compatibility_layer', false );
    
    				if ( $is_disabled_compatibility_layer ) {
    					return $block_content;
    				}
    
    				return $this->inject_hooks( $block_content, $block );
    

See this hook used in plugins: