wpseo_enable_structured_data_blocks

wpseo_enable_structured_data_blocks

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-seo.22.3

apply_filters('wpseo_enable_structured_data_blocks') is found 1 times:

  • /src/integrations/blocks/structured-data-blocks.php line 156
    		 * Filter: 'wpseo_enable_structured_data_blocks' - Allows disabling Yoast's schema blocks entirely.
    		 *
    		 * @param bool $enable If false, our structured data blocks won't show.
    		 */
    		if ( ! \apply_filters( 'wpseo_enable_structured_data_blocks', true ) ) {
    			return;
    		}
    
    		$this->asset_manager->enqueue_script( 'structured-data-blocks' );
    		$this->asset_manager->enqueue_style( 'structured-data-blocks' );
    	}