WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
класс не описан

Yoast\WP\SEO\Routes

Abstract_Action_Route{} Yoast 1.0

Abstract_Action_Route class.

Abstract class for action routes.

Хуков нет.

Возвращает

null. Ничего.

Использование

$Abstract_Action_Route = new Abstract_Action_Route();
// use class methods

Методы

  1. respond_with( $objects, $next_url )

Код Abstract_Action_Route{} Yoast 17.9

abstract class Abstract_Action_Route implements Route_Interface {

	/**
	 * Responds to an indexing request.
	 *
	 * @param array  $objects  The objects that have been indexed.
	 * @param string $next_url The url that should be called to continue reindexing. False if done.
	 *
	 * @return WP_REST_Response The response.
	 */
	protected function respond_with( $objects, $next_url ) {
		return new WP_REST_Response(
			[
				'objects'  => $objects,
				'next_url' => $next_url,
			]
		);
	}
}