Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Download & Extend
    • Get WordPress
    • Themes
    • Patterns
    • Plugins
    • Openverse
    • Mobile
    • Hosting
  • Learn
    • Learn WordPress
    • Documentation
    • Forums
    • WordPress.tv
    • Developers
  • Community
    • Make WordPress
    • WordCamp
    • Meetups
    • Photo Directory
    • Job Board
    • Five for the Future
  • About
    • About WordPress
    • Showcase
    • Gutenberg
    • Enterprise
  • Get WordPress
Get WordPress

Developer Resources

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

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

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:842

Used by 0 functions | Uses 5 functions

oembed_iframe_title_attribute

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

Source: wp-includes/embed.php:879

Used by 1 function | Uses 0 functions

get_oembed_response_data_for_url()

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

Source: wp-includes/embed.php:620

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:1236

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:1201

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:1056

Used by 1 function | Uses 0 functions

print_embed_styles()

Function: Prints the CSS in the embed iframe header.

Source: wp-includes/embed.php:1064

Used by 0 functions | Uses 1 function

print_embed_scripts()

Function: Prints the JavaScript in the embed iframe header.

Source: wp-includes/embed.php:1079

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:1094

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:1103

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:1132

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:1150

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:1030

Used by 0 functions | Uses 2 functions

enqueue_embed_scripts()

Function: Enqueues embed iframe default CSS and JS.

Source: wp-includes/embed.php:1048

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:698

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:738

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:761

Used by 0 functions | Uses 4 functions

_oembed_create_xml()

Function: Creates an XML string from a given array.

Source: wp-includes/embed.php:807

Used by 2 functions | Uses 2 functions

wp_filter_oembed_result()

Function: Filters the given oEmbed HTML.

Source: wp-includes/embed.php:909

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:986

Used by 0 functions | Uses 5 functions

the_excerpt_embed()

Function: Displays the post excerpt for the embed template.

Source: wp-includes/embed.php:1007

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:1017

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:607

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
  • Donate
  • Swag
  • Documentation
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our Twitter account
  • Visit our Instagram account
  • Visit our LinkedIn account
Code is Poetry