_wp_oembed_get_object()WP 2.9.0

Returns the initialized WP_oEmbed object.

Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.

No Hooks.

Return

WP_oEmbed. object.

Usage

_wp_oembed_get_object();

Changelog

Since 2.9.0 Introduced.

_wp_oembed_get_object() code WP 6.5.2

function _wp_oembed_get_object() {
	static $wp_oembed = null;

	if ( is_null( $wp_oembed ) ) {
		$wp_oembed = new WP_oEmbed();
	}
	return $wp_oembed;
}