Yoast\WP\SEO\Helpers
Current_Page_Helper::is_author_archive()
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 21.6
public function is_author_archive() { $wp_query = $this->wp_query_wrapper->get_main_query(); return $wp_query->is_author(); }