Yoast\WP\SEO\Routes
Indexing_Route::can_index()
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 24.4
public function can_index() { return \current_user_can( 'edit_posts' ); }