emoji_svg_url
Filters the URL where emoji SVG images are hosted.
Usage
add_filter( 'emoji_svg_url', 'wp_kama_emoji_svg_url_filter' ); /** * Function for `emoji_svg_url` filter-hook. * * @param string $url The emoji base URL for svg images. * * @return string */ function wp_kama_emoji_svg_url_filter( $url ){ // filter... return $url; }
- $url(string)
- The emoji base URL for svg images.
Changelog
Since 4.6.0 | Introduced. |
Where the hook is called
wp-includes/formatting.php 5926
'svgUrl' => apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/15.1.0/svg/' ),