Title: print_emoji_styles
Published: April 23, 2015
Last modified: May 20, 2026

---

# print_emoji_styles()

## In this article

 * [Source](https://developer.wordpress.org/reference/functions/print_emoji_styles/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/print_emoji_styles/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/print_emoji_styles/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/print_emoji_styles/?output_format=md#wp--skip-link--target)

This function has been deprecated since 6.4.0. Use wp_enqueue_emoji_styles() instead.

Prints the important emoji-related styles.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/print_emoji_styles/?output_format=md#source)󠁿

    ```php
    function print_emoji_styles() {
    	_deprecated_function( __FUNCTION__, '6.4.0', 'wp_enqueue_emoji_styles' );
    	static $printed = false;

    	if ( $printed ) {
    		return;
    	}

    	$printed = true;

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

[View all references](https://developer.wordpress.org/reference/files/wp-includes/deprecated.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/deprecated.php#L5913)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/deprecated.php#L5913-L5939)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/print_emoji_styles/?output_format=md#related)󠁿

| Uses | Description | 
| [_deprecated_function()](https://developer.wordpress.org/reference/functions/_deprecated_function/)`wp-includes/functions.php` |

Marks a function as deprecated and inform when it has been used.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/print_emoji_styles/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.4.0](https://developer.wordpress.org/reference/since/6.4.0/) | Deprecated. Use [wp_enqueue_emoji_styles()](https://developer.wordpress.org/reference/functions/wp_enqueue_emoji_styles/) instead. | 
| [4.2.0](https://developer.wordpress.org/reference/since/4.2.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fprint_emoji_styles%2F)
before being able to contribute a note or feedback.