wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi
wp_enqueue_embed_styles › WordPress Function
Da6.4.0
Deprecaton/a
› wp_enqueue_embed_styles ( Nessun parametro )
| Definito a: |
|
| Codex: |
Enqueues the CSS in the embed iframe header.
Funzioni correlate: wp_enqueue_emoji_styles, wp_enqueue_stored_styles, wp_enqueue_style, wp_enqueue_global_styles, wp_enqueue_block_style
Sorgenti
function wp_enqueue_embed_styles() {
// Back-compat for plugins that disable functionality by unhooking this action.
if ( ! has_action( 'embed_head', 'print_embed_styles' ) ) {
return;
}
remove_action( 'embed_head', 'print_embed_styles' );
$suffix = wp_scripts_get_suffix();
$handle = 'wp-embed-template';
wp_register_style( $handle, false );
wp_add_inline_style( $handle, file_get_contents( ABSPATH . WPINC . "/css/wp-embed-template$suffix.css" ) );
wp_enqueue_style( $handle );
}