WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Авторские Темы для WordPress
фильтр не описан

wpseo_schema_(identifier) хук-фильтр . Yoast 1.0

Filter: 'wpseo_schema_<identifier>' - Allows changing graph piece output.

Использование

add_filter( 'wpseo_schema_(identifier)', 'filter_function_name_8468', 10, 4 );
function filter_function_name_8468( $graph_piece, $context, $graph_piece_generator, $graph_piece_generators ){
	// filter...

	return $graph_piece;
}
$graph_piece(массив)
The graph piece to filter.
$context(Meta_Tags_Context)
A value object with context variables.
$graph_piece_generator(Abstract_Schema_Piece)
A value object with context variables.
$graph_piece_generators(Abstract_Schema_Piece[])
A value object with context variables.

Где вызывается хук

Schema_Generator::generate_graph()
wpseo_schema_(identifier)
yoast/src/generators/schema-generator.php 148
$graph_piece = \apply_filters( 'wpseo_schema_' . $identifier, $graph_piece, $context, $graph_piece_generator, $graph_piece_generators );

Где используется хук в ядре Yoast SEO

yoast/src/generators/schema-generator.php 241
\add_filter( 'wpseo_schema_webpage', [ $this, 'protected_webpage_schema' ], 1 );
yoast/src/integrations/front-end/schema-accessibility-feature.php 33
\add_filter( 'wpseo_schema_webpage', [ $this, 'maybe_add_accessibility_feature' ], 10, 4 );
yoast/src/integrations/front-end/schema-accessibility-feature.php 34
\add_filter( 'wpseo_schema_article', [ $this, 'add_accessibility_feature' ], 10, 2 );
yoast/src/integrations/third-party/the-events-calendar.php 33
\add_filter( 'wpseo_schema_graph_pieces', [ $this, 'add_graph_pieces' ], 11, 2 );
yoast/src/integrations/third-party/web-stories.php 58
\add_filter( 'wpseo_schema_article_post_types', [ $this, 'filter_schema_article_post_types' ] );
yoast/src/integrations/third-party/web-stories.php 59
\add_filter( 'wpseo_schema_article_type', [ $this, 'filter_schema_article_type' ], 10, 2 );