embed_head
The WordPress Core embed head hook.
Description
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.
- // run the action
- do_action( 'embed_head', $enqueue_embed_scripts, $int );
- The following example is for adding a hook callback.
- // define the embed_head callback
- function action_embed_head( $enqueue_embed_scripts, $int ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'embed_head', 'action_embed_head', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the action
- 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
- add_action( 'embed_head', 'enqueue_embed_scripts', 1 );
- add_action( 'embed_head', 'print_emoji_detection_script' );
- add_action( 'embed_head', 'print_embed_styles' );
- add_action( 'embed_head', 'wp_print_head_scripts', 20 );
- add_action( 'embed_head', 'wp_print_styles', 20 );
- add_action( 'embed_head', 'wp_no_robots' );
- add_action( 'embed_head', 'rel_canonical' );
- add_action( 'embed_head', 'locale_stylesheet', 30 );
- /wp-includes/theme-compat/header-embed.php
- do_action( 'embed_head' );