Yoast\WP\SEO\Routes
Abstract_Indexation_Route::respond_with() protected Yoast 1.0
Responds to an indexing request.
{} Это метод класса: Abstract_Indexation_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_Indexation_Route::respond_with() Abstract Indexation Route::respond with Yoast 15.6.2
protected function respond_with( $objects, $next_url ) {
return new WP_REST_Response(
[
'objects' => $objects,
'next_url' => $next_url,
]
);
}