Yoast\WP\SEO\Helpers
Author_Archive_Helper::get_author_archive_post_types() public Yoast 1.0
Gets the array of post types that are shown on an author's archive.
{} Это метод класса: Author_Archive_Helper{}
Хуки из метода
Возвращает
Массив. The post types that are shown on an author's archive.
Использование
$Author_Archive_Helper = new Author_Archive_Helper(); $Author_Archive_Helper->get_author_archive_post_types();
Код Author_Archive_Helper::get_author_archive_post_types() Author Archive Helper::get author archive post types Yoast 15.6.2
public function get_author_archive_post_types() {
/**
* Filters the array of post types that are shown on an author's archive.
*
* @param array $args The post types that are shown on an author archive.
*/
return \apply_filters( 'wpseo_author_archive_post_types', [ 'post' ] );
}