wp_oembed_register_route()WP 4.4.0

Registers the oEmbed REST API route.

No Hooks.

Return

null. Nothing (null).

Usage

wp_oembed_register_route();

Changelog

Since 4.4.0 Introduced.

wp_oembed_register_route() code WP 6.5.4

function wp_oembed_register_route() {
	$controller = new WP_oEmbed_Controller();
	$controller->register_routes();
}