embed_head хук-событиеWP 4.4.0

Prints scripts or data in the embed template head tag.

Использование

add_action( 'embed_head', 'wp_kama_embed_head_action' );

/**
 * Function for `embed_head` action-hook.
 * 
 * @return void
 */
function wp_kama_embed_head_action(){

	// action...
}

Список изменений

С версии 4.4.0 Введена.

Где вызывается хук

В файле: /wp-includes/theme-compat/header-embed.php
embed_head

Где используется хук в WordPress

wp-includes/default-filters.php 649
add_action( 'embed_head', 'enqueue_embed_scripts', 1 );
wp-includes/default-filters.php 650
add_action( 'embed_head', 'print_emoji_detection_script' );
wp-includes/default-filters.php 651
add_action( 'embed_head', 'print_embed_styles' );
wp-includes/default-filters.php 652
add_action( 'embed_head', 'wp_print_head_scripts', 20 );
wp-includes/default-filters.php 653
add_action( 'embed_head', 'wp_print_styles', 20 );
wp-includes/default-filters.php 654
add_action( 'embed_head', 'wp_robots' );
wp-includes/default-filters.php 655
add_action( 'embed_head', 'rel_canonical' );
wp-includes/default-filters.php 656
add_action( 'embed_head', 'locale_stylesheet', 30 );