Yoast\WP\SEO\Integrations\Third_Party
Web_Stories::filter_schema_article_post_types() public Yoast 1.0
Adds web story post type to list of which post types to output Article schema for.
{} Это метод класса: Web_Stories{}
Хуков нет.
Возвращает
Строку[]. Array of post types.
Использование
$Web_Stories = new Web_Stories(); $Web_Stories->filter_schema_article_post_types( $post_types );
- $post_types(строка[]) (обязательный)
- Array of post types.
Код Web_Stories::filter_schema_article_post_types() Web Stories::filter schema article post types Yoast 15.6.2
public function filter_schema_article_post_types( $post_types ) {
$post_types[] = Google_Web_Stories\Story_Post_Type::POST_TYPE_SLUG;
return $post_types;
}