_wp_oembed_get_object
Returns the initialized WP_oEmbed object.
Description
(WP_oEmbed) _wp_oembed_get_object();
Returns (WP_oEmbed)
object.
Usage
if ( !function_exists( '_wp_oembed_get_object' ) ) { require_once ABSPATH . WPINC . '/embed.php'; } // NOTICE! Understand what this does before running. $result = _wp_oembed_get_object();
Defined (1)
The function is defined in the following location(s).
- /wp-includes/embed.php
- function _wp_oembed_get_object() {
- static $wp_oembed = null;
- if ( is_null( $wp_oembed ) ) {
- $wp_oembed = new WP_oEmbed();
- }
- return $wp_oembed;
- }