Yoast\WP\SEO\Routes
Indexing_Route::can_index() public Yoast 1.0
Whether or not the current user is allowed to index.
{} Это метод класса: Indexing_Route{}
Хуков нет.
Возвращает
true/false. Whether or not the current user is allowed to index.
Использование
$Indexing_Route = new Indexing_Route(); $Indexing_Route->can_index();
Код Indexing_Route::can_index() Indexing Route::can index Yoast 15.6.2
public function can_index() {
return \current_user_can( 'edit_posts' );
}