Yoast\WP\SEO\Helpers
Current_Page_Helper::is_author_archive() public Yoast 1.0
Determine whether this is an author archive.
{} Это метод класса: Current_Page_Helper{}
Хуков нет.
Возвращает
true/false. Whether nor not the current page is an author archive.
Использование
$Current_Page_Helper = new Current_Page_Helper(); $Current_Page_Helper->is_author_archive();
Код Current_Page_Helper::is_author_archive() Current Page Helper::is author archive Yoast 15.6.2
public function is_author_archive() {
$wp_query = $this->wp_query_wrapper->get_main_query();
return $wp_query->is_author();
}