Returns the initialized 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. |
| CARVIEW |
This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Returns the initialized WP_oEmbed object.
function _wp_oembed_get_object() {
static $wp_oembed = null;
if ( is_null( $wp_oembed ) ) {
$wp_oembed = new WP_oEmbed();
}
return $wp_oembed;
}
| Uses | Description |
|---|---|
WP_oEmbed::__construct()wp-includes/class-wp-oembed.php | Constructor. |
| Used by | Description |
|---|---|
WP_oEmbed_Controller::get_proxy_item()wp-includes/class-wp-oembed-controller.php | Callback for the proxy API endpoint. |
wp_filter_pre_oembed_result()wp-includes/embed.php | Filters the oEmbed result before any HTTP requests are made. |
wp_filter_oembed_result()wp-includes/embed.php | Filters the given oEmbed HTML. |
wp_oembed_get()wp-includes/embed.php | Attempts to fetch the embed HTML for a provided URL using oEmbed. |
wp_oembed_add_provider()wp-includes/embed.php | Adds a URL format and oEmbed provider URL pair. |
wp_oembed_remove_provider()wp-includes/embed.php | Removes an oEmbed provider. |
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.