embed_head
Prints scripts or data in the embed template head tag.
Usage
add_action( 'embed_head', 'wp_kama_embed_head_action' );
/**
* Function for `embed_head` action-hook.
*
* @return void
*/
function wp_kama_embed_head_action(){
// action...
}Changelog
| Since 4.4.0 | Introduced. |
Where the hook is called
embed_head
wp-includes/theme-compat/header-embed.php 29
do_action( 'embed_head' );
Where the hook is used in WordPress
wp-includes/default-filters.php 718
add_action( 'embed_head', 'enqueue_embed_scripts', 1 );
wp-includes/default-filters.php 719
add_action( 'embed_head', 'print_emoji_detection_script' );
wp-includes/default-filters.php 720
add_action( 'embed_head', 'wp_enqueue_embed_styles', 9 );
wp-includes/default-filters.php 721
add_action( 'embed_head', 'print_embed_styles' ); // Retained for backwards-compatibility. Unhooked by wp_enqueue_embed_styles().
wp-includes/default-filters.php 722
add_action( 'embed_head', 'wp_print_head_scripts', 20 );
wp-includes/default-filters.php 723
add_action( 'embed_head', 'wp_print_styles', 20 );
wp-includes/default-filters.php 724
add_action( 'embed_head', 'wp_robots' );
wp-includes/default-filters.php 725
add_action( 'embed_head', 'rel_canonical' );
wp-includes/default-filters.php 726
add_action( 'embed_head', 'locale_stylesheet', 30 );
wp-includes/embed.php 1089
remove_action( 'embed_head', 'print_embed_styles' );