emoji_url filter-hookWP 4.2.0

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

_print_emoji_detection_script()
emoji_url
wp_staticize_emoji()
emoji_url
wp-includes/formatting.php 5756
'baseUrl' => apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/14.0.0/72x72/' ),
wp-includes/formatting.php 5869
$cdn_url = apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/14.0.0/72x72/' );

Where the hook is used in WordPress

Usage not found.