File: wp-includes/embed.php
-
functionwp_enqueue_embed_styles()
Enqueues the CSS in the embed iframe header.
-
Enqueue the wp-embed script if the provided oEmbed HTML contains a post embed.
-
Filters the title attribute of the given oEmbed HTML iframe.
-
Filters the given oEmbed HTML to make sure iframes have a title attribute.
-
Retrieves the oEmbed response data for a given URL.
-
functionwp_filter_pre_oembed_result()
Filters the oEmbed result before any HTTP requests are made.
-
functionthe_embed_site_title()
Prints the necessary markup for the site title in an embed template.
-
Fires when scripts and styles are enqueued for the embed iframe.
-
functionprint_embed_scripts()
Prints the JavaScript in the embed iframe header.
-
function_oembed_filter_feed_content()
Prepare the oembed HTML to be displayed in an RSS feed.
-
functionprint_embed_comments_button()
Prints the necessary markup for the embed comments button.
-
functionprint_embed_sharing_button()
Prints the necessary markup for the embed sharing button.
-
functionprint_embed_sharing_dialog()
Prints the necessary markup for the embed sharing dialog.
-
functionwp_embed_excerpt_attachment()
Filters the post excerpt for the embed template.
-
functionenqueue_embed_scripts()
Enqueues embed iframe default CSS and JS.
-
functionget_oembed_response_data_rich()
Filters the oEmbed response data to return an iframe embed code.
-
functionwp_oembed_ensure_format()
Ensures that the specified format is either ‘json’ or ‘xml’.
-
function_oembed_rest_pre_serve_request()
Hooks into the REST API output to print XML instead of JSON.
-
function_oembed_create_xml()
Creates an XML string from a given array.
-
functionwp_filter_oembed_result()
Filters the given oEmbed HTML.
-
functionwp_embed_excerpt_more()
Filters the string in the ‘more’ link displayed after a trimmed excerpt.
-
functionthe_excerpt_embed()
Displays the post excerpt for the embed template.
-
Filters the post excerpt for the embed template.
-
functionwp_oembed_add_discovery_links()
Adds oEmbed discovery links in the head element of the website.
-
Filters the oEmbed response data.
-
Filters the oEmbed discovery links HTML.
-
functionwp_oembed_add_host_js()
Adds the necessary JavaScript to communicate with the embedded iframes.
-
functionget_post_embed_url()
Retrieves the URL to embed a specific post in an iframe.
-
hookpost_embed_url
Filters the URL to embed a specific post.
-
functionget_oembed_endpoint_url()
Retrieves the oEmbed endpoint URL for a given permalink.