print_emoji_styles() │ WP 4.2.0
Print the important emoji-related styles.
1 time — 0.000013 sec (very fast) | 50000 times — 0.01 sec (speed of light)
No Hooks.
Return
null
. Nothing.
Usage
print_emoji_styles();
Changelog
Code of print_emoji_styles() print emoji styles
WP 6.0
<?php
function print_emoji_styles() {
static $printed = false;
if ( $printed ) {
return;
}
$printed = true;
$type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"';
?>
<style<?php echo $type_attr; ?>>
img.wp-smiley,
img.emoji {
display: inline !important;
border: none !important;
box-shadow: none !important;
height: 1em !important;
width: 1em !important;
margin: 0 0.07em !important;
vertical-align: -0.1em !important;
background: none !important;
padding: 0 !important;
}
</style>
<?php
}
Related Functions