_wp_oembed_get_object() – Returns the initialized WP_oEmbed object.

You appear to be a bot. Output may be restricted

Description

Returns the initialized WP_oEmbed object.

Usage

$WP_oEmbed = _wp_oembed_get_object();

Parameters

Returns

WP_oEmbed object.

Source

File name: wordpress/wp-includes/embed.php
Lines:

1 to 8 of 8
function _wp_oembed_get_object() {
  static $wp_oembed = null;

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

 View on GitHub View on Trac