函数原型
print_embed_styles()
函数描述
Prints the CSS in the embed iframe header.
是否弃用
未弃用
函数参数
无
函数返回值
无
函数位置
File: wp-includes/embed.php.
函数源码
function print_embed_styles() {
$type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"';
$suffix = SCRIPT_DEBUG ? '' : '.min';
?>
<style<?php echo $type_attr; ?>>
<?php echo file_get_contents( ABSPATH . WPINC . "/css/wp-embed-template$suffix.css" ); ?>
</style>
<?php
}
源码链接
变更日志
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |

