embed-404.php
Embed 404 template — displayed when an embedded post cannot be found.
Source: wp-includes/theme-compat/embed-404.php
Since: 4.5.0
Subpackage: Theme_Compat
Purpose
Loaded by get_template_part( 'embed', '404' ) when the active theme has no embed-404.php. Shown in the embed iframe when have_posts() returns false.
Behavior
Opens
<div class="wp-embed">.Heading:
<p class="wp-embed-heading">with text "Oops! That embed cannot be found."Excerpt area:
<div class="wp-embed-excerpt">with a paragraph suggesting the user visit the site directly. Contains a link tohome_url()with the site name fromget_bloginfo( 'name' ).Fires the
embed_contentaction (documented in embed-content.php).Footer:
<div class="wp-embed-footer">containingthe_embed_site_title().Closes wrapper div.
Hooks
embed_content (action)
do_action( 'embed_content' );Opens <div class="wp-embed">.
Functions Called
| Function | Purpose |
|---|---|
_e() | Translated heading text |
__() | Translated paragraph text |
printf() | String formatting |
esc_url() | Escape home URL |
home_url() | Site home URL |
esc_html() | Escape site name |
get_bloginfo() | Site name |
do_action() | Fire embed_content |
the_embed_site_title() | Site icon and title |