WP_REST_Controller::register_routes

Advertisement

Summery Summery

Registers the routes for the objects of the controller.

Syntax Syntax

WP_REST_Controller::register_routes()

Source Source

File: wp-includes/rest-api/endpoints/class-wp-rest-controller.php

	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'
		);
	}

Advertisement

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

See also See also

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.