emoji_url
Filters the URL where emoji png images are hosted.
Description
Parameters (1)
- 0. $https_s_w_org_images_core_emoji_2_2_1_72x72 (string) =>
'https://s.w.org/images/core/emoji/2.2.1/72x72/'
- The https s w org images core emoji 2 2 1 72x72.
Usage
- To run the hook, copy the example below.
- $https_s_w_org_images_core_emoji_2_2_1_72x72 = apply_filters( 'emoji_url', $https_s_w_org_images_core_emoji_2_2_1_72x72 );
- if ( !empty( $https_s_w_org_images_core_emoji_2_2_1_72x72 ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the emoji_url callback
- function filter_emoji_url( $https_s_w_org_images_core_emoji_2_2_1_72x72 ) {
- // make filter magic happen here...
- return $https_s_w_org_images_core_emoji_2_2_1_72x72;
- };
- // add the filter
- add_filter( 'emoji_url', 'filter_emoji_url', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'emoji_url', 'filter_emoji_url', 10, 1 );
Defined (2)
The filter is defined in the following location(s).
- /wp-includes/formatting.php
- 'baseUrl' => apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/2.2.1/72x72/' ),
- $cdn_url = apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/2.2.1/72x72/' );