W3cubDocs

/WordPress

_wp_oembed_get_object(): WP_oEmbed

Returns the initialized WP_oEmbed object.

Return

WP_oEmbed object.

Source

function _wp_oembed_get_object() {
	static $wp_oembed = null;

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

Changelog

Version Description
2.9.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/_wp_oembed_get_object