Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Showcase
  • Hosting
    • Themes
    • Plugins
    • Patterns
    • Blocks
    • Openverse ↗︎
    • Learn WordPress
    • Documentation
    • Forums
    • Developers
    • WordPress.tv ↗︎
    • Make WordPress
    • Photo Directory
    • Five for the Future
    • WordCamp ↗︎
    • Meetups ↗︎
    • Job Board ↗︎
    • About WordPress
    • Enterprise
    • Gutenberg ↗︎
    • Swag Store ↗︎
  • Get WordPress
Get WordPress

Developer Resources

Browse: Home / Reference / wp-includes/embed.php

wp_enqueue_embed_styles()

Function: Enqueues the CSS in the embed iframe header.

Source: wp-includes/embed.php:1066

Used by 0 functions | Uses 6 functions

wp_maybe_enqueue_oembed_host_js()

Function: Enqueue the wp-embed script if the provided oEmbed HTML contains a post embed.

Source: wp-includes/embed.php:388

Used by 0 functions | Uses 2 functions

oembed_iframe_title_attribute

Filter Hook: Filters the title attribute of the given oEmbed HTML iframe.

Source: wp-includes/embed.php:881

Used by 1 function | Uses 0 functions

wp_filter_oembed_iframe_title_attribute()

Function: Filters the given oEmbed HTML to make sure iframes have a title attribute.

Source: wp-includes/embed.php:844

Used by 0 functions | Uses 5 functions

get_oembed_response_data_for_url()

Function: Retrieves the oEmbed response data for a given URL.

Source: wp-includes/embed.php:622

Used by 2 functions | Uses 12 functions

wp_filter_pre_oembed_result()

Function: Filters the oEmbed result before any HTTP requests are made.

Source: wp-includes/embed.php:1242

Used by 0 functions | Uses 2 functions

the_embed_site_title()

Function: Prints the necessary markup for the site title in an embed template.

Source: wp-includes/embed.php:1207

Used by 0 functions | Uses 7 functions

enqueue_embed_scripts

Action Hook: Fires when scripts and styles are enqueued for the embed iframe.

Source: wp-includes/embed.php:1058

Used by 1 function | Uses 0 functions

print_embed_scripts()

Function: Prints the JavaScript in the embed iframe header.

Source: wp-includes/embed.php:1085

Used by 0 functions | Uses 2 functions

_oembed_filter_feed_content()

Function: Prepare the oembed HTML to be displayed in an RSS feed.

Source: wp-includes/embed.php:1100

Used by 0 functions | Uses 0 functions

print_embed_comments_button()

Function: Prints the necessary markup for the embed comments button.

Source: wp-includes/embed.php:1109

Used by 0 functions | Uses 6 functions

print_embed_sharing_button()

Function: Prints the necessary markup for the embed sharing button.

Source: wp-includes/embed.php:1138

Used by 0 functions | Uses 2 functions

print_embed_sharing_dialog()

Function: Prints the necessary markup for the embed sharing dialog.

Source: wp-includes/embed.php:1156

Used by 0 functions | Uses 9 functions

wp_embed_excerpt_attachment()

Function: Filters the post excerpt for the embed template.

Source: wp-includes/embed.php:1032

Used by 0 functions | Uses 2 functions

enqueue_embed_scripts()

Function: Enqueues embed iframe default CSS and JS.

Source: wp-includes/embed.php:1050

Used by 0 functions | Uses 2 functions

get_oembed_response_data_rich()

Function: Filters the oEmbed response data to return an iframe embed code.

Source: wp-includes/embed.php:700

Used by 0 functions | Uses 8 functions

wp_oembed_ensure_format()

Function: Ensures that the specified format is either ‘json’ or ‘xml’.

Source: wp-includes/embed.php:740

Used by 0 functions | Uses 0 functions

_oembed_rest_pre_serve_request()

Function: Hooks into the REST API output to print XML instead of JSON.

Source: wp-includes/embed.php:763

Used by 0 functions | Uses 4 functions

_oembed_create_xml()

Function: Creates an XML string from a given array.

Source: wp-includes/embed.php:809

Used by 2 functions | Uses 2 functions

wp_filter_oembed_result()

Function: Filters the given oEmbed HTML.

Source: wp-includes/embed.php:911

Used by 0 functions | Uses 5 functions

wp_embed_excerpt_more()

Function: Filters the string in the ‘more’ link displayed after a trimmed excerpt.

Source: wp-includes/embed.php:988

Used by 0 functions | Uses 5 functions

the_excerpt_embed()

Function: Displays the post excerpt for the embed template.

Source: wp-includes/embed.php:1009

Used by 0 functions | Uses 2 functions

the_excerpt_embed

Filter Hook: Filters the post excerpt for the embed template.

Source: wp-includes/embed.php:1019

Used by 1 function | Uses 0 functions

wp_oembed_add_discovery_links()

Function: Adds oEmbed discovery links in the head element of the website.

Source: wp-includes/embed.php:335

Used by 0 functions | Uses 5 functions

oembed_response_data

Filter Hook: Filters the oEmbed response data.

Source: wp-includes/embed.php:609

Used by 1 function | Uses 0 functions

oembed_discovery_links

Filter Hook: Filters the oEmbed discovery links HTML.

Source: wp-includes/embed.php:353

Used by 1 function | Uses 0 functions

wp_oembed_add_host_js()

Function: Adds the necessary JavaScript to communicate with the embedded iframes.

Source: wp-includes/embed.php:375

Used by 0 functions | Uses 0 functions

get_post_embed_url()

Function: Retrieves the URL to embed a specific post in an iframe.

Source: wp-includes/embed.php:407

Used by 1 function | Uses 11 functions

post_embed_url

Filter Hook: Filters the URL to embed a specific post.

Source: wp-includes/embed.php:429

Used by 1 function | Uses 0 functions

get_oembed_endpoint_url()

Function: Retrieves the oEmbed endpoint URL for a given permalink.

Source: wp-includes/embed.php:443

Used by 1 function | Uses 3 functions
1 2 Next
  • About
  • News
  • Hosting
  • Privacy
  • Showcase
  • Themes
  • Plugins
  • Patterns
  • Learn
  • Documentation
  • Developers
  • WordPress.tv ↗
  • Get Involved
  • Donate ↗
  • Swag Store ↗
  • WordCamp ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our X (formerly Twitter) account
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our YouTube channel
Code is Poetry