Filter hook 'emoji_svg_url'

in WP Core File wp-includes/formatting.php at line 5936

View Source

emoji_svg_url

Filter Hook
Description
Filters the URL where emoji SVG images are hosted.

Hook Information

File Location wp-includes/formatting.php View on GitHub
Hook Type Filter
Line Number 5936

Hook Parameters

Type Name Description
string $url The emoji base URL for svg images.

Usage Examples

Basic Usage
<?php
// Hook into emoji_svg_url
add_filter('emoji_svg_url', 'my_custom_filter', 10, 1);

function my_custom_filter($url) {
    // Your custom filtering logic here
    return $url;
}

Source Code Context

wp-includes/formatting.php:5936 - How this hook is used in WordPress core
<?php
5931  		 *
5932  		 * @since 4.6.0
5933  		 *
5934  		 * @param string $url The emoji base URL for svg images.
5935  		 */
5936  		'svgUrl'  => apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/16.0.1/svg/' ),
5937  
5938  		/**
5939  		 * Filters the extension of the emoji SVG files.
5940  		 *
5941  		 * @since 4.6.0

PHP Documentation

<?php
/**
		 * Filters the URL where emoji SVG images are hosted.
		 *
		 * @since 4.6.0
		 *
		 * @param string $url The emoji base URL for svg images.
		 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-includes/formatting.php
Related Hooks

Related hooks will be displayed here in future updates.