emoji_url
Filters the URL where emoji png images are hosted.
Usage
add_filter( 'emoji_url', 'wp_kama_emoji_url_filter' );
/**
* Function for `emoji_url` filter-hook.
*
* @param string $url The emoji base URL for png images.
*
* @return string
*/
function wp_kama_emoji_url_filter( $url ){
// filter...
return $url;
}
- $url(string)
- The emoji base URL for png images.
Changelog
| Since 4.2.0 | Introduced. |
Where the hook is called
emoji_url
wp-includes/formatting.php 5942
'baseUrl' => apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/17.0.2/72x72/' ),
wp-includes/formatting.php 6067
$cdn_url = apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/17.0.2/72x72/' );