wpseo_pre_schema_block_type_

wpseo_pre_schema_block_type_

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-seo.23.9

do_action('wpseo_pre_schema_block_type_') is found 1 times:

  • /src/generators/schema-generator.php line 63
    			 *
    			 * @param WP_Block_Parser_Block[] $blocks     All the blocks of this block type.
    			 * @param Meta_Tags_Context       $context    A value object with context variables.
    			 */
    			\do_action( 'wpseo_pre_schema_block_type_' . $block_type, $context->blocks[ $block_type ], $context );
    		}
    
    		// Do a loop before everything else to inject the context and helpers.
    		foreach ( $pieces as $piece ) {
    			if ( \is_a( $piece, Abstract_Schema_Piece::class ) ) {
    				$piece->context = $context;