WordPress开发者和主题制作者的搜索引擎



enqueue_embed_scripts ›

Since4.4.0
已弃用n/a
enqueue_embed_scripts ( 没有参数 )
定义在:
文档:

Enqueue embed iframe default CSS and JS & fire do_action('enqueue_embed_scripts')

Enqueue PNG fallback CSS for embed iframe for legacy versions of IE.

Allows plugins to queue scripts for the embed iframe end using wp_enqueue_script(). Runs first in oembed_head().



源码

function enqueue_embed_scripts() {
	wp_enqueue_style( 'wp-embed-template-ie' );

	/**
	 * Fires when scripts and styles are enqueued for the embed iframe.
	 *
	 * @since 4.4.0
	 */
	do_action( 'enqueue_embed_scripts' );
}