emoji_svg_url

This filter is documented in wp-includes/formatting.php.

Description

apply_filters( 'emoji_svg_url', (string) $https_s_w_org_images_core_emoji_2_2_1_svg ); 

Parameters (1)

0. $https_s_w_org_images_core_emoji_2_2_1_svg (string) => 'https://s.w.org/images/core/emoji/2.2.1/svg/'
The https s w org images core emoji 2 2 1 svg.

Usage

To run the hook, copy the example below.
  1. $https_s_w_org_images_core_emoji_2_2_1_svg = apply_filters( 'emoji_svg_url', $https_s_w_org_images_core_emoji_2_2_1_svg ); 
  2.  
  3. if ( !empty( $https_s_w_org_images_core_emoji_2_2_1_svg ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the emoji_svg_url callback 
  2. function filter_emoji_svg_url( $https_s_w_org_images_core_emoji_2_2_1_svg ) { 
  3. // make filter magic happen here... 
  4. return $https_s_w_org_images_core_emoji_2_2_1_svg
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'emoji_svg_url', 'filter_emoji_svg_url', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'emoji_svg_url', 'filter_emoji_svg_url', 10, 1 ); 

Defined (2)

The filter is defined in the following location(s).

/wp-includes/general-template.php  
  1. $hints['dns-prefetch'][] = apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/2.2.1/svg/' ); 
/wp-includes/formatting.php  
  1. 'svgUrl' => apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/2.2.1/svg/' ),