Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: emoji_ext

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

This hook occurs 2 times in this file.

Line Code
4527           'baseUrl' => apply_filters( 'emoji_url', set_url_scheme( '//s.w.org/images/core/emoji/72x72/' ) ),
4528
4529           /**
4530            * Filter the extension of the emoji files.
4531            *
4532            * @since 4.2.0
4533            *
4534            * @param string The emoji extension. Default .png.
4535            */
4536           'ext' => apply_filters( 'emoji_ext', '.png' ),
4537      );
4538
4539      $version = 'ver=' . $wp_version;
4540
4541      if ( SCRIPT_DEBUG ) {
4542           $settings['source'] = array(
4543                /** This filter is documented in wp-includes/class.wp-scripts.php */
4544                'wpemoji' => apply_filters( 'script_loader_src', includes_url( "js/wp-emoji.js?$version" ), 'wpemoji' ),
4545                /** This filter is documented in wp-includes/class.wp-scripts.php */
 
Line Code
4633  * @return string The encoded content.
4634  */
4635 function wp_staticize_emoji( $text ) {
4636      $text = wp_encode_emoji( $text );
4637
4638      /** This filter is documented in wp-includes/formatting.php */
4639      $cdn_url = apply_filters( 'emoji_url', set_url_scheme( '//s.w.org/images/core/emoji/72x72/' ) );
4640
4641      /** This filter is documented in wp-includes/formatting.php */
4642      $ext = apply_filters( 'emoji_ext', '.png' );
4643
4644      $output = '';
4645      /*
4646       * HTML loop taken from smiley function, which was taken from texturize function.
4647       * It'll never be consolidated.
4648       *
4649       * First, capture the tags as well as in between.
4650       */
4651      $textarr = preg_split( '/(<.*>)/U', $text, -1, PREG_SPLIT_DELIM_CAPTURE );