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().
源代码
File: wp-includes/embed.php
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' );
}
更新日志
Version | 描述 |
---|---|
4.4.0 | Introduced. |
相关函数
Uses
-
wp-includes/embed.php:
enqueue_embed_scripts -
wp-includes/functions.wp-styles.php:
wp_enqueue_style() -
wp-includes/plugin.php:
do_action()
你可能对这些文章感兴趣:
- wordpress函数get_the_posts_navigation()用法示例
- wordpress函数get_the_title()用法示例
- wordpress函数get_the_terms()用法示例
- wordpress函数get_the_tags()用法示例
- wordpress函数get_the_taxonomies()用法示例
- wordpress函数get_the_permalink()用法示例
- wordpress函数get_the_password_form()用法示例
- wordpress函数get_the_posts_pagination()用法示例
- wordpress函数get_the_modified_time()用法示例
- wordpress函数get_the_modified_date()用法示例
- wordpress函数get_the_modified_author()用法示例
- wordpress函数get_the_guid()用法示例
- wordpress函数get_the_ID()用法示例
- wordpress函数get_the_excerpt()用法示例
如有疑问,请前往问答中心反馈!
反馈