Yoast\WP\SEO\Routes
Abstract_Indexation_Route::run_indexation_action()
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_Interface) (обязательный)
- The indexing action.
- $url(строка) (обязательный)
- The url of the indexing route.
Код Abstract_Indexation_Route::run_indexation_action() Abstract Indexation Route::run indexation action Yoast 22.4
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 ); }