print_embed_styles() WordPress Function
This function allows you to print embedded styles on your WordPress site. This is useful if you want to add custom styles to your site without having to edit your theme's stylesheet.
print_embed_styles() #
Prints the CSS in the embed iframe header.
Source
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 }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |