Yoast\WP\SEO\Helpers
Author_Archive_Helper::get_author_archive_post_types()
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 22.4
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' ] ); }