print_embed_styles()WP 4.4.0

Prints the CSS in the embed iframe header.

No Hooks.

Return

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

Usage

print_embed_styles();

Changelog

Since 4.4.0 Introduced.

print_embed_styles() code WP 6.3

<?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
}