_wp_oembed_get_object

Returns the initialized WP_oEmbed object.

Description

(WP_oEmbed) _wp_oembed_get_object(); 

Returns (WP_oEmbed)

object.


Usage

  1. if ( !function_exists( '_wp_oembed_get_object' ) ) { 
  2. require_once ABSPATH . WPINC . '/embed.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = _wp_oembed_get_object(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/embed.php  
  1. function _wp_oembed_get_object() { 
  2. static $wp_oembed = null; 
  3.  
  4. if ( is_null( $wp_oembed ) ) { 
  5. $wp_oembed = new WP_oEmbed(); 
  6. return $wp_oembed;