wpseo_schema_block_(block_type) хук-фильтр . Yoast 1.0
Filter: 'wpseo_schema_block_<block-type>' - Allows filtering graph output per block.
Использование
add_filter( 'wpseo_schema_block_(block_type)', 'filter_function_name_3914', 10, 3 ); function filter_function_name_3914( $graph, $block, $context ){ // filter... return $graph; }
- $graph(массив)
- Our Schema output.
- $block(WP_Block_Parser_Block)
- The block.
- $context(Meta_Tags_Context)
- A value object with context variables.
Где вызывается хук
wpseo_schema_block_(block_type)
yoast/src/generators/schema-generator.php 182
$graph = \apply_filters( 'wpseo_schema_block_' . $block_type, $graph, $block, $context );