Yoast\WP\SEO\Conditionals

User_Can_Publish_Posts_And_Pages_Conditional::is_met()publicYoast 1.0

Returns whether or not this conditional is met.

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

Хуков нет.

Возвращает

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

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

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

Код User_Can_Publish_Posts_And_Pages_Conditional::is_met() Yoast 19.6.1

public function is_met() {
	return \current_user_can( 'publish_posts' ) && \current_user_can( 'publish_pages' );
}