Yoast\WP\SEO\Helpers\Schema

Article_Helper::is_author_supported()publicYoast 1.0

Checks whether author is supported for the passed object sub type.

Метод класса: Article_Helper{}

Хуков нет.

Возвращает

true|false. True if author is supported for the passed object sub type.

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

$Article_Helper = new Article_Helper();
$Article_Helper->is_author_supported( $object_sub_type );
$object_sub_type(строка) (обязательный)
The sub type of the object to check author support for.

Код Article_Helper::is_author_supported() Yoast 25.0

public function is_author_supported( $object_sub_type ) {
	return \post_type_supports( $object_sub_type, 'author' );
}