Yoast\WP\SEO\Generated

Cached_Container::getUserCanPublishPostsAndPagesConditionalService()protectedYoast 1.0

Gets the public 'Yoast\WP\SEO\Conditionals\User_Can_Publish_Posts_And_Pages_Conditional' shared autowired service.

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

Хуков нет.

Возвращает

\Yoast\WP\SEO\Conditionals\User_Can_Publish_Posts_And_Pages_Conditional.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->getUserCanPublishPostsAndPagesConditionalService();

Код Cached_Container::getUserCanPublishPostsAndPagesConditionalService() Yoast 19.7.1

protected function getUserCanPublishPostsAndPagesConditionalService()
{
    return $this->services['Yoast\\WP\\SEO\\Conditionals\\User_Can_Publish_Posts_And_Pages_Conditional'] = new \Yoast\WP\SEO\Conditionals\User_Can_Publish_Posts_And_Pages_Conditional();
}