Title: oEmbed | Developer.WordPress.org

---

# @package: oEmbed

 * 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:1084](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L1084-L1096)
 * 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/6.9.4/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:863](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L863-L912)
 * 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:900](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L900-L900)
 * 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:640](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L640-L705)
 * 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:358](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-oembed.php#L358-L374)
 * 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:408](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-oembed.php#L408-L408)
 * 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:1267](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L1267-L1275)
 * 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:1232](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L1232-L1251)
 * 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:1181](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L1181-L1225)
 * 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:1051](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L1051-L1057)
 * 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:1069](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L1069-L1077)
 * 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:1076](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L1076-L1076)
 * 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:1103](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L1103-L1108)
 * 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:1119](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L1119-L1127)
 * 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:1134](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L1134-L1156)
 * 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:1163](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L1163-L1174)
 * 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:1007](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L1007-L1019)
 * 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:1028](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L1028-L1039)
 * 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:1038](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L1038-L1038)
 * 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:719](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L719-L749)
 * 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:759](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L759-L765)
 * 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:782](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L782-L816)
 * 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:828](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L828-L851)
 * 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:930](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L930-L994)
 * hook[oembed_endpoint_url](https://developer.wordpress.org/reference/hooks/oembed_endpoint_url/)
 * Filters the oEmbed endpoint URL.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/oembed_endpoint_url/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/oembed_endpoint_url/#uses)
   | Source: [wp-includes/embed.php:477](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L477-L477)
 * function[get_post_embed_html()](https://developer.wordpress.org/reference/functions/get_post_embed_html/)
 * Retrieves the embed code for a specific post.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/get_post_embed_html/#used-by)
   | Uses [15 functions](https://developer.wordpress.org/reference/functions/get_post_embed_html/#uses)
   | Source: [wp-includes/embed.php:490](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L490-L548)
 * hook[embed_html](https://developer.wordpress.org/reference/hooks/embed_html/)
 * Filters the embed HTML output for a given post.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/embed_html/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/embed_html/#uses)
   | Source: [wp-includes/embed.php:547](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L547-L547)
 * function[get_oembed_response_data()](https://developer.wordpress.org/reference/functions/get_oembed_response_data/)
 * Retrieves the oEmbed response data for a given post.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/get_oembed_response_data/#used-by)
   | Uses [10 functions](https://developer.wordpress.org/reference/functions/get_oembed_response_data/#uses)
   | Source: [wp-includes/embed.php:561](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L561-L628)
 * hook[oembed_min_max_width](https://developer.wordpress.org/reference/hooks/oembed_min_max_width/)
 * Filters the allowed minimum and maximum widths for the oEmbed response.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/oembed_min_max_width/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/oembed_min_max_width/#uses)
   | Source: [wp-includes/embed.php:589](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L589-L595)

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)