emoji_svg_ext
Filter HookDescription
Filters the extension of the emoji SVG files.Hook Information
File Location |
wp-includes/formatting.php
View on GitHub
|
Hook Type | Filter |
Line Number | 5945 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$extension
|
The emoji extension for svg files. Default .svg. |
Usage Examples
Basic Usage
<?php
// Hook into emoji_svg_ext
add_filter('emoji_svg_ext', 'my_custom_filter', 10, 1);
function my_custom_filter($extension) {
// Your custom filtering logic here
return $extension;
}
Source Code Context
wp-includes/formatting.php:5945
- How this hook is used in WordPress core
<?php
5940 *
5941 * @since 4.6.0
5942 *
5943 * @param string $extension The emoji extension for svg files. Default .svg.
5944 */
5945 'svgExt' => apply_filters( 'emoji_svg_ext', '.svg' ),
5946 );
5947
5948 $version = 'ver=' . get_bloginfo( 'version' );
5949
5950 if ( SCRIPT_DEBUG ) {
PHP Documentation
<?php
/**
* Filters the extension of the emoji SVG files.
*
* @since 4.6.0
*
* @param string $extension The emoji extension for svg files. Default .svg.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/formatting.php
Related Hooks
Related hooks will be displayed here in future updates.