_wp_oembed_get_object()
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() wp oembed get object code WP 6.6.1
function _wp_oembed_get_object() { static $wp_oembed = null; if ( is_null( $wp_oembed ) ) { $wp_oembed = new WP_oEmbed(); } return $wp_oembed; }