Yoast\WP\SEO\Conditionals

User_Can_Manage_Wpseo_Options_Conditional::is_met()publicYoast 1.0

Returns whether or not this conditional is met.

{} Это метод класса: User_Can_Manage_Wpseo_Options_Conditional{}

Хуков нет.

Возвращает

true|false. Whether or not the conditional is met.

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

$User_Can_Manage_Wpseo_Options_Conditional = new User_Can_Manage_Wpseo_Options_Conditional();
$User_Can_Manage_Wpseo_Options_Conditional->is_met();

Код User_Can_Manage_Wpseo_Options_Conditional::is_met() Yoast 19.2

public function is_met() {
	return \current_user_can( 'wpseo_manage_options' );
}