Yoast\WP\SEO\Routes

Meta_Search_Route::register_routes()publicYoast 1.0

Registers routes with WordPress.

{} Это метод класса: Meta_Search_Route{}

Хуков нет.

Возвращает

null. Ничего.

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

$Meta_Search_Route = new Meta_Search_Route();
$Meta_Search_Route->register_routes();

Код Meta_Search_Route::register_routes() Yoast 19.7.1

public function register_routes() {
	$route = [
		[
			'methods'             => 'GET',
			'callback'            => [ $this, 'search_meta' ],
			'permission_callback' => [ $this, 'permission_check' ],
		],
	];

	\register_rest_route( Main::API_V1_NAMESPACE, self::META_SEARCH_ROUTE, $route );
}