emoji_ext
Filter HookDescription
Converts emoji to a static img element.Hook Information
File Location |
wp-includes/formatting.php
View on GitHub
|
Hook Type | Filter |
Line Number | 6034 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$text
|
The content to encode. |
Usage Examples
Basic Usage
<?php
// Hook into emoji_ext
add_filter('emoji_ext', 'my_custom_filter', 10, 1);
function my_custom_filter($text) {
// Your custom filtering logic here
return $text;
}
Source Code Context
wp-includes/formatting.php:6034
- How this hook is used in WordPress core
<?php
6029
6030 /** This filter is documented in wp-includes/formatting.php */
6031 $cdn_url = apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/16.0.1/72x72/' );
6032
6033 /** This filter is documented in wp-includes/formatting.php */
6034 $ext = apply_filters( 'emoji_ext', '.png' );
6035
6036 $output = '';
6037 /*
6038 * HTML loop taken from smiley function, which was taken from texturize function.
6039 * It'll never be consolidated.
PHP Documentation
<?php
/**
* Converts emoji to a static img element.
*
* @since 4.2.0
*
* @param string $text The content to encode.
* @return string The encoded content.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/formatting.php
Related Hooks
Related hooks will be displayed here in future updates.