Yoast\WP\SEO\Routes

Abstract_Action_Route::respond_with()protectedYoast 1.0

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() Yoast 22.4

protected function respond_with( $objects, $next_url ) {
	return new WP_REST_Response(
		[
			'objects'  => $objects,
			'next_url' => $next_url,
		]
	);
}