Yoast\WP\SEO\Routes
Abstract_Action_Route::respond_with
Responds to an indexing request.
Метод класса: Abstract_Action_Route{}
Хуков нет.
Возвращает
WP_REST_Response. The response.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->respond_with( $objects, $next_url );
- $objects(массив) (обязательный)
- The objects that have been indexed.
- $next_url(строка) (обязательный)
- The url that should be called to continue reindexing. False if done.
Код Abstract_Action_Route::respond_with() Abstract Action Route::respond with Yoast 26.9
protected function respond_with( $objects, $next_url ) {
return new WP_REST_Response(
[
'objects' => $objects,
'next_url' => $next_url,
]
);
}