wpseo_schema_article_sections_taxonomy хук-фильтрYoast 1.0

Filter: wpseo_schema_article_sections_taxonomy Allow changing the taxonomy used to assign keywords to a post type Article data.

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

add_filter( 'wpseo_schema_article_sections_taxonomy', 'wp_kama_wpseo_schema_article_sections_taxonomy_filter' );

/**
 * Function for `wpseo_schema_article_sections_taxonomy` filter-hook.
 * 
 * @param string $taxonomy The chosen taxonomy.
 *
 * @return string
 */
function wp_kama_wpseo_schema_article_sections_taxonomy_filter( $taxonomy ){

	// filter...
	return $taxonomy;
}
$taxonomy(строка)
The chosen taxonomy.

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

Article::add_sections()
wpseo_schema_article_sections_taxonomy
yoast/src/generators/schema/article.php 114
$taxonomy = \apply_filters( 'wpseo_schema_article_sections_taxonomy', 'category' );

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

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