emoji_ext filter-hookWP 4.2.0

Filters the extension of the emoji png files.

Usage

add_filter( 'emoji_ext', 'wp_kama_emoji_ext_filter' );

/**
 * Function for `emoji_ext` filter-hook.
 * 
 * @param string $extension The emoji extension for png files. Default .png.
 *
 * @return string
 */
function wp_kama_emoji_ext_filter( $extension ){

	// filter...
	return $extension;
}
$extension(string)
The emoji extension for png files. Default .png.

Changelog

Since 4.2.0 Introduced.

Where the hook is called

_print_emoji_detection_script()
emoji_ext
wp_staticize_emoji()
emoji_ext
wp-includes/formatting.php 5933
'ext'     => apply_filters( 'emoji_ext', '.png' ),
wp-includes/formatting.php 6040
$ext = apply_filters( 'emoji_ext', '.png' );

Where the hook is used in WordPress

Usage not found.