embed_head

The WordPress Core embed head hook.

Description

add_action( 'embed_head', (string) $enqueue_embed_scripts, (int) $int ); 

Parameters (2)

0. $enqueue_embed_scripts (string) => 'enqueue_embed_scripts'
The enqueue embed scripts.
1. $int (int) => 1
The int.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'embed_head', $enqueue_embed_scripts, $int ); 
The following example is for adding a hook callback.
  1. // define the embed_head callback 
  2. function action_embed_head( $enqueue_embed_scripts, $int ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'embed_head', 'action_embed_head', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'embed_head', 'action_embed_head', 10, 2 ); 

Defined (9)

The action is defined in the following location(s).

/wp-includes/default-filters.php  
  1. add_action( 'embed_head', 'enqueue_embed_scripts', 1 ); 
  1. add_action( 'embed_head', 'print_emoji_detection_script' ); 
  1. add_action( 'embed_head', 'print_embed_styles' ); 
  1. add_action( 'embed_head', 'wp_print_head_scripts', 20 ); 
  1. add_action( 'embed_head', 'wp_print_styles', 20 ); 
  1. add_action( 'embed_head', 'wp_no_robots' ); 
  1. add_action( 'embed_head', 'rel_canonical' ); 
  1. add_action( 'embed_head', 'locale_stylesheet', 30 ); 
/wp-includes/theme-compat/header-embed.php  
  1. do_action( 'embed_head' );