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

Yoast\WP\SEO\Routes

Indexing_Route::register_routes() public Yoast 1.0

Registers the routes used to index indexables.

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

Хуков нет.

Возвращает

null. Ничего.

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

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

Код Indexing_Route::register_routes() Yoast 16.8

<?php
public function register_routes() {
	$route_args = [
		'methods'             => 'POST',
		'callback'            => [ $this, 'index_posts' ],
		'permission_callback' => [ $this, 'can_index' ],
	];
	\register_rest_route( Main::API_V1_NAMESPACE, self::POSTS_ROUTE, $route_args );

	$route_args['callback'] = [ $this, 'index_terms' ];
	\register_rest_route( Main::API_V1_NAMESPACE, self::TERMS_ROUTE, $route_args );

	$route_args['callback'] = [ $this, 'index_post_type_archives' ];
	\register_rest_route( Main::API_V1_NAMESPACE, self::POST_TYPE_ARCHIVES_ROUTE, $route_args );

	$route_args['callback'] = [ $this, 'index_general' ];
	\register_rest_route( Main::API_V1_NAMESPACE, self::GENERAL_ROUTE, $route_args );

	$route_args['callback'] = [ $this, 'prepare' ];
	\register_rest_route( Main::API_V1_NAMESPACE, self::PREPARE_ROUTE, $route_args );

	$route_args['callback'] = [ $this, 'indexables_complete' ];
	\register_rest_route( Main::API_V1_NAMESPACE, self::INDEXABLES_COMPLETE_ROUTE, $route_args );

	$route_args['callback'] = [ $this, 'complete' ];
	\register_rest_route( Main::API_V1_NAMESPACE, self::COMPLETE_ROUTE, $route_args );

	$route_args['callback'] = [ $this, 'index_post_links' ];
	\register_rest_route( Main::API_V1_NAMESPACE, self::POST_LINKS_INDEXING_ROUTE, $route_args );

	$route_args['callback'] = [ $this, 'index_term_links' ];
	\register_rest_route( Main::API_V1_NAMESPACE, self::TERM_LINKS_INDEXING_ROUTE, $route_args );
}