Yoast\WP\SEO\Routes
Abstract_Indexation_Route::run_indexation_action() protected Yoast 1.0
Runs an indexing action and returns the response.
{} Это метод класса: Abstract_Indexation_Route{}
Хуков нет.
Возвращает
WP_REST_Response. The response.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->run_indexation_action( $indexation_action, $url );
- $indexation_action(Indexation_Action_числоerface) (обязательный)
- The indexing action.
- $url(строка) (обязательный)
- The url of the indexing route.
Код Abstract_Indexation_Route::run_indexation_action() Abstract Indexation Route::run indexation action Yoast 15.6.2
protected function run_indexation_action( Indexation_Action_Interface $indexation_action, $url ) {
$indexables = $indexation_action->index();
$next_url = false;
if ( \count( $indexables ) >= $indexation_action->get_limit() ) {
$next_url = \rest_url( $url );
}
return $this->respond_with( $indexables, $next_url );
}