print_emoji_styles

Print the important emoji-related styles.

Description

print_emoji_styles(); 

Usage

  1. if ( !function_exists( 'print_emoji_styles' ) ) { 
  2. require_once ABSPATH . WPINC . '/formatting.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = print_emoji_styles(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/formatting.php  
  1. function print_emoji_styles() { 
  2. static $printed = false; 
  3.  
  4. if ( $printed ) { 
  5. return; 
  6.  
  7. $printed = true; 
  8. ?> 
  9. <style type="text/css"> 
  10. img.wp-smiley,  
  11. img.emoji { 
  12. display: inline !important; 
  13. border: none !important; 
  14. box-shadow: none !important; 
  15. height: 1em !important; 
  16. width: 1em !important; 
  17. margin: 0 .07em !important; 
  18. vertical-align: -0.1em !important; 
  19. background: none !important; 
  20. padding: 0 !important; 
  21. </style> 
  22. <?php