wpseo_schema_article_type
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 wp_kama_wpseo_schema_article_type_filter( $type, $indexable ){ // filter... return $type; }
- $type(строка|string[])
- The Article type.
- $indexable(Indexable)
- The indexable.
Где вызывается хук
wpseo_schema_article_type
yoast/src/context/meta-tags-context.php 513
return \apply_filters( 'wpseo_schema_article_type', $additional_type, $this->indexable );
yoast/src/context/meta-tags-context.php 531
return \apply_filters( 'wpseo_schema_article_type', $type, $this->indexable );