WP_REST_Controller::register_routes()publicWP 4.7.0

Registers the routes for the objects of the controller.

Метод класса: WP_REST_Controller{}

Хуков нет.

Возвращает

null. Ничего (null).

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

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

Заметки

Список изменений

С версии 4.7.0 Введена.

Код WP_REST_Controller::register_routes() WP 6.5.2

public function register_routes() {
	_doing_it_wrong(
		'WP_REST_Controller::register_routes',
		/* translators: %s: register_routes() */
		sprintf( __( "Method '%s' must be overridden." ), __METHOD__ ),
		'4.7.0'
	);
}