Title: oEmbed | Developer.WordPress.org

---

# @package: oEmbed

 * method[WP_oEmbed::sanitize_provider()](https://developer.wordpress.org/reference/classes/wp_oembed/sanitize_provider/)
 * Sanitizes and normalizes a single oEmbed provider entry.
 * Used by [2 functions](https://developer.wordpress.org/reference/classes/wp_oembed/sanitize_provider/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_oembed/sanitize_provider/#uses)
   | Source: [wp-includes/class-wp-oembed.php:285](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-oembed.php#L285-L301)
 * function[wp_enqueue_embed_styles()](https://developer.wordpress.org/reference/functions/wp_enqueue_embed_styles/)
 * Enqueues the CSS in the embed iframe header.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_enqueue_embed_styles/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/wp_enqueue_embed_styles/#uses)
   | Source: [wp-includes/embed.php:1088](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/embed.php#L1088-L1100)
 * function[wp_maybe_enqueue_oembed_host_js()](https://developer.wordpress.org/reference/functions/wp_maybe_enqueue_oembed_host_js/)
 * Enqueue the wp-embed script if the provided oEmbed HTML contains a post embed.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_maybe_enqueue_oembed_host_js/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/wp_maybe_enqueue_oembed_host_js/#uses)
   | Source: [wp-includes/embed.php:400](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/embed.php#L400-L409)
 * function[wp_filter_oembed_iframe_title_attribute()](https://developer.wordpress.org/reference/functions/wp_filter_oembed_iframe_title_attribute/)
 * Filters the given oEmbed HTML to make sure iframes have a title attribute.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_filter_oembed_iframe_title_attribute/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/wp_filter_oembed_iframe_title_attribute/#uses)
   | Source: [wp-includes/embed.php:867](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/embed.php#L867-L916)
 * hook[oembed_iframe_title_attribute](https://developer.wordpress.org/reference/hooks/oembed_iframe_title_attribute/)
 * Filters the title attribute of the given oEmbed HTML iframe.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/oembed_iframe_title_attribute/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/oembed_iframe_title_attribute/#uses)
   | Source: [wp-includes/embed.php:904](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/embed.php#L904-L904)
 * function[get_oembed_response_data_for_url()](https://developer.wordpress.org/reference/functions/get_oembed_response_data_for_url/)
 * Retrieves the oEmbed response data for a given URL.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/get_oembed_response_data_for_url/#used-by)
   | Uses [12 functions](https://developer.wordpress.org/reference/functions/get_oembed_response_data_for_url/#uses)
   | Source: [wp-includes/embed.php:641](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/embed.php#L641-L706)
 * method[WP_oEmbed::get_data()](https://developer.wordpress.org/reference/classes/wp_oembed/get_data/)
 * Takes a URL and attempts to return the oEmbed data.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_oembed/get_data/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/classes/wp_oembed/get_data/#uses)
   | Source: [wp-includes/class-wp-oembed.php:416](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-oembed.php#L416-L426)
 * hook[pre_oembed_result](https://developer.wordpress.org/reference/hooks/pre_oembed_result/)
 * Filters the oEmbed result before any HTTP requests are made.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/pre_oembed_result/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/pre_oembed_result/#uses)
   | Source: [wp-includes/class-wp-oembed.php:460](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-oembed.php#L460-L460)
 * function[wp_filter_pre_oembed_result()](https://developer.wordpress.org/reference/functions/wp_filter_pre_oembed_result/)
 * Filters the oEmbed result before any HTTP requests are made.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_filter_pre_oembed_result/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/wp_filter_pre_oembed_result/#uses)
   | Source: [wp-includes/embed.php:1284](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/embed.php#L1284-L1292)
 * function[the_embed_site_title()](https://developer.wordpress.org/reference/functions/the_embed_site_title/)
 * Prints the necessary markup for the site title in an embed template.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/the_embed_site_title/#used-by)
   | Uses [7 functions](https://developer.wordpress.org/reference/functions/the_embed_site_title/#uses)
   | Source: [wp-includes/embed.php:1236](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/embed.php#L1236-L1268)
 * function[wp_embed_excerpt_attachment()](https://developer.wordpress.org/reference/functions/wp_embed_excerpt_attachment/)
 * Filters the post excerpt for the embed template.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_embed_excerpt_attachment/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/wp_embed_excerpt_attachment/#uses)
   | Source: [wp-includes/embed.php:1055](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/embed.php#L1055-L1061)
 * function[enqueue_embed_scripts()](https://developer.wordpress.org/reference/functions/enqueue_embed_scripts/)
 * Enqueues embed iframe default CSS and JS.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/enqueue_embed_scripts/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/enqueue_embed_scripts/#uses)
   | Source: [wp-includes/embed.php:1073](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/embed.php#L1073-L1081)
 * hook[enqueue_embed_scripts](https://developer.wordpress.org/reference/hooks/enqueue_embed_scripts/)
 * Fires when scripts and styles are enqueued for the embed iframe.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/enqueue_embed_scripts/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/enqueue_embed_scripts/#uses)
   | Source: [wp-includes/embed.php:1080](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/embed.php#L1080-L1080)
 * function[print_embed_scripts()](https://developer.wordpress.org/reference/functions/print_embed_scripts/)
 * Prints the JavaScript in the embed iframe header.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/print_embed_scripts/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/print_embed_scripts/#uses)
   | Source: [wp-includes/embed.php:1107](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/embed.php#L1107-L1112)
 * function[_oembed_filter_feed_content()](https://developer.wordpress.org/reference/functions/_oembed_filter_feed_content/)
 * Prepare the oembed HTML to be displayed in an RSS feed.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/_oembed_filter_feed_content/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/_oembed_filter_feed_content/#uses)
   | Source: [wp-includes/embed.php:1123](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/embed.php#L1123-L1131)
 * function[print_embed_comments_button()](https://developer.wordpress.org/reference/functions/print_embed_comments_button/)
 * Prints the necessary markup for the embed comments button.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/print_embed_comments_button/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/print_embed_comments_button/#uses)
   | Source: [wp-includes/embed.php:1138](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/embed.php#L1138-L1160)
 * function[print_embed_sharing_button()](https://developer.wordpress.org/reference/functions/print_embed_sharing_button/)
 * Prints the necessary markup for the embed sharing button.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/print_embed_sharing_button/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/print_embed_sharing_button/#uses)
   | Source: [wp-includes/embed.php:1167](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/embed.php#L1167-L1178)
 * function[print_embed_sharing_dialog()](https://developer.wordpress.org/reference/functions/print_embed_sharing_dialog/)
 * Prints the necessary markup for the embed sharing dialog.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/print_embed_sharing_dialog/#used-by)
   | Uses [9 functions](https://developer.wordpress.org/reference/functions/print_embed_sharing_dialog/#uses)
   | Source: [wp-includes/embed.php:1185](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/embed.php#L1185-L1229)
 * function[wp_oembed_ensure_format()](https://developer.wordpress.org/reference/functions/wp_oembed_ensure_format/)
 * Ensures that the specified format is either ‘json’ or ‘xml’.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_oembed_ensure_format/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/wp_oembed_ensure_format/#uses)
   | Source: [wp-includes/embed.php:763](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/embed.php#L763-L769)
 * function[_oembed_rest_pre_serve_request()](https://developer.wordpress.org/reference/functions/_oembed_rest_pre_serve_request/)
 * Hooks into the REST API output to print XML instead of JSON.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/_oembed_rest_pre_serve_request/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/_oembed_rest_pre_serve_request/#uses)
   | Source: [wp-includes/embed.php:786](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/embed.php#L786-L820)
 * function[_oembed_create_xml()](https://developer.wordpress.org/reference/functions/_oembed_create_xml/)
 * Creates an XML string from a given array.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/_oembed_create_xml/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/_oembed_create_xml/#uses)
   | Source: [wp-includes/embed.php:832](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/embed.php#L832-L855)
 * function[wp_filter_oembed_result()](https://developer.wordpress.org/reference/functions/wp_filter_oembed_result/)
 * Filters the given oEmbed HTML.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_filter_oembed_result/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/wp_filter_oembed_result/#uses)
   | Source: [wp-includes/embed.php:934](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/embed.php#L934-L998)
 * function[wp_embed_excerpt_more()](https://developer.wordpress.org/reference/functions/wp_embed_excerpt_more/)
 * Filters the string in the ‘more’ link displayed after a trimmed excerpt.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_embed_excerpt_more/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/wp_embed_excerpt_more/#uses)
   | Source: [wp-includes/embed.php:1011](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/embed.php#L1011-L1023)
 * function[the_excerpt_embed()](https://developer.wordpress.org/reference/functions/the_excerpt_embed/)
 * Displays the post excerpt for the embed template.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/the_excerpt_embed/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/the_excerpt_embed/#uses)
   | Source: [wp-includes/embed.php:1032](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/embed.php#L1032-L1043)
 * hook[the_excerpt_embed](https://developer.wordpress.org/reference/hooks/the_excerpt_embed/)
 * Filters the post excerpt for the embed template.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/the_excerpt_embed/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/the_excerpt_embed/#uses)
   | Source: [wp-includes/embed.php:1042](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/embed.php#L1042-L1042)
 * function[get_oembed_response_data_rich()](https://developer.wordpress.org/reference/functions/get_oembed_response_data_rich/)
 * Filters the oEmbed response data to return an iframe embed code.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/get_oembed_response_data_rich/#used-by)
   | Uses [8 functions](https://developer.wordpress.org/reference/functions/get_oembed_response_data_rich/#uses)
   | Source: [wp-includes/embed.php:720](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/embed.php#L720-L753)
 * function[wp_oembed_add_discovery_links()](https://developer.wordpress.org/reference/functions/wp_oembed_add_discovery_links/)
 * Adds oEmbed discovery links in the head element of the website.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_oembed_add_discovery_links/#used-by)
   | Uses [10 functions](https://developer.wordpress.org/reference/functions/wp_oembed_add_discovery_links/#uses)
   | Source: [wp-includes/embed.php:337](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/embed.php#L337-L366)
 * hook[oembed_discovery_links](https://developer.wordpress.org/reference/hooks/oembed_discovery_links/)
 * Filters the oEmbed discovery links HTML.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/oembed_discovery_links/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/oembed_discovery_links/#uses)
   | Source: [wp-includes/embed.php:365](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/embed.php#L365-L365)
 * function[wp_oembed_add_host_js()](https://developer.wordpress.org/reference/functions/wp_oembed_add_host_js/)
 * Adds the necessary JavaScript to communicate with the embedded iframes.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_oembed_add_host_js/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/wp_oembed_add_host_js/#uses)
   | Source: [wp-includes/embed.php:387](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/embed.php#L387-L387)
 * function[get_post_embed_url()](https://developer.wordpress.org/reference/functions/get_post_embed_url/)
 * Retrieves the URL to embed a specific post in an iframe.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/get_post_embed_url/#used-by)
   | Uses [11 functions](https://developer.wordpress.org/reference/functions/get_post_embed_url/#uses)
   | Source: [wp-includes/embed.php:419](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/embed.php#L419-L442)

1 [2](https://developer.wordpress.org/reference/package/oembed/page/2/?output_format=md)
[3](https://developer.wordpress.org/reference/package/oembed/page/3/?output_format=md)

 [Next Page](https://developer.wordpress.org/reference/package/oembed/page/2/?output_format=md)