функция
Устаревший since 4.4.0
print_embed_styles()
Устаревшее.
Помечено устаревшим с версии 6.4.0.
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
print_embed_styles()
Описание
Выводит CSS в заголовок iframe встраивания.
Исходный код
wp-includes/deprecated.php:5896
function print_embed_styles() {
_deprecated_function( __FUNCTION__, '6.4.0', 'wp_enqueue_embed_styles' );
$suffix = SCRIPT_DEBUG ? '' : '.min';
?>
<style>
<?php echo file_get_contents( ABSPATH . WPINC . "/css/wp-embed-template$suffix.css" ); ?>
</style>
<?php
}
История изменений
| Версия | Описание |
|---|---|
| 6.4.0 | Deprecated. Use wp_enqueue_embed_styles() instead. |
| 4.4.0 | Introduced. |

