emoji_svg_ext filter-hookWP 4.6.0

Filters the extension of the emoji SVG files.

Usage

add_filter( 'emoji_svg_ext', 'wp_kama_emoji_svg_ext_filter' );

/**
 * Function for `emoji_svg_ext` filter-hook.
 * 
 * @param string $extension The emoji extension for svg files. Default .svg.
 *
 * @return string
 */
function wp_kama_emoji_svg_ext_filter( $extension ){

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

Changelog

Since 4.6.0 Introduced.

Where the hook is called

_print_emoji_detection_script()
emoji_svg_ext
wp-includes/formatting.php 5783
'svgExt'  => apply_filters( 'emoji_svg_ext', '.svg' ),

Where the hook is used in WordPress

Usage not found.