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

Filter: wpseo_schema_article_type Allow changing the Article type.

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

add_filter( 'wpseo_schema_article_type', 'wp_kama_wpseo_schema_article_type_filter', 10, 2 );

/**
 * Function for `wpseo_schema_article_type` filter-hook.
 * 
 * @param string|string[] $type      The Article type.
 * @param Indexable       $indexable The indexable.
 *
 * @return string|string[]
 */
function wp_kama_wpseo_schema_article_type_filter( $type, $indexable ){

	// filter...
	return $type;
}
$type(строка|string[])
The Article type.
$indexable(Indexable)
The indexable.

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

Meta_Tags_Context::generate_schema_article_type()
wpseo_schema_article_type
yoast/src/context/meta-tags-context.php 575
return \apply_filters( 'wpseo_schema_article_type', $additional_type, $this->indexable );
yoast/src/context/meta-tags-context.php 593
return \apply_filters( 'wpseo_schema_article_type', $type, $this->indexable );

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

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