embed_content
Action HookDescription
Contains the post embed content template part When a post is embedded in an iframe, this file is used to create the content template part output if the active theme does not include an embed-404.php template.Hook Information
File Location |
wp-includes/theme-compat/embed-404.php
View on GitHub
|
Hook Type | Action |
Line Number | 30 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into embed_content
add_action('embed_content', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-includes/theme-compat/embed-404.php:30
- How this hook is used in WordPress core
<?php
25 </p>
26 </div>
27
28 <?php
29 /** This filter is documented in wp-includes/theme-compat/embed-content.php */
30 do_action( 'embed_content' );
31 ?>
32
33 <div class="wp-embed-footer">
34 <?php the_embed_site_title(); ?>
35 </div>
PHP Documentation
<?php
/**
* Contains the post embed content template part
*
* When a post is embedded in an iframe, this file is used to create the content template part
* output if the active theme does not include an embed-404.php template.
*
* @package WordPress
* @subpackage Theme_Compat
* @since 4.5.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-includes/theme-compat/embed-404.php
Related Hooks
Related hooks will be displayed here in future updates.