Title: emoji_ext
Published: April 23, 2015
Last modified: August 20, 2026

---

# apply_filters( ’emoji_ext’, string $extension )

## In this article

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

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

Filters the extension of the emoji png files.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/emoji_ext/?output_format=md#parameters)󠁿

 `$extension`string

The emoji extension for png files. Default .png.

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

    ```php
    'ext'     => apply_filters( 'emoji_ext', '.png' ),
    ```

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

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

| Used by | Description | 
| [wp_staticize_emoji()](https://developer.wordpress.org/reference/functions/wp_staticize_emoji/)`wp-includes/formatting.php` |

Converts emoji to a static img element.

  |

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

| Version | Description | 
| [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%2Fhooks%2Femoji_ext%2F)
before being able to contribute a note or feedback.