Yoast\WP\SEO\Helpers\Schema
Article_Helper::is_article_post_type()
Determines whether a given post type should have Article schema.
Метод класса: Article_Helper{}
Хуков нет.
Возвращает
true|false
. True if it has Article schema, false if not.
Использование
$Article_Helper = new Article_Helper(); $Article_Helper->is_article_post_type( $post_type );
- $post_type(строка|null)
- Post type to check.
По умолчанию: null
Код Article_Helper::is_article_post_type() Article Helper::is article post type Yoast 24.4
public function is_article_post_type( $post_type = null ) { if ( \is_null( $post_type ) ) { $post_type = \get_post_type(); } return $this->is_author_supported( $post_type ); }