Yoast\WP\SEO\Conditionals\Admin
Yoast_Admin_Conditional::is_met()
Returns true when on the admin dashboard, update or Yoast SEO pages.
Метод класса: Yoast_Admin_Conditional{}
Хуков нет.
Возвращает
true|false
. true when on the admin dashboard, update or Yoast SEO pages.
Использование
$Yoast_Admin_Conditional = new Yoast_Admin_Conditional(); $Yoast_Admin_Conditional->is_met();
Код Yoast_Admin_Conditional::is_met() Yoast Admin Conditional::is met Yoast 23.6
public function is_met() { if ( ! \is_admin() ) { return false; } return $this->current_page_helper->is_yoast_seo_page(); }