print_embed_styles()WP 4.4.0

Устарела с версии 6.4.0. Больше не поддерживается и может быть удалена. Используйте wp_enqueue_embed_styles().

Prints the CSS in the embed iframe header.

Хуков нет.

Возвращает

null. Ничего (null).

Использование

print_embed_styles();

Список изменений

С версии 4.4.0 Введена.
Устарела с 6.4.0 Use wp_enqueue_embed_styles() instead.

Код print_embed_styles() WP 6.5.2

<?php
function print_embed_styles() {
	_deprecated_function( __FUNCTION__, '6.4.0', 'wp_enqueue_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
}