Yoast\WP\SEO\Abilities\User_Interface\Abilities

Abstract_Score_Ability::can_manage_seo │ public │ Yoast 1.0

Checks whether the current user can manage Yoast SEO.

Gates the score abilities behind the Yoast SEO management capability.

Метод класса: Abstract_Score_Ability{}

Хуков нет.

Возвращает

bool. Whether the current user can manage Yoast SEO.

Использование

$Abstract_Score_Ability = new Abstract_Score_Ability();
$Abstract_Score_Ability->can_manage_seo(): bool;

Код Abstract_Score_Ability::can_manage_seo() Yoast 28.9

public function can_manage_seo(): bool {
	return $this->capability_helper->current_user_can( 'wpseo_manage_options' );
}