WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
This hook occurs 2 times in this file.
| Line | Code |
|---|---|
| 4130 | 'baseUrl' => apply_filters( 'emoji_url', set_url_scheme( '//s.w.org/images/core/emoji/72x72/' ) ), |
| 4131 | |
| 4132 | /** |
| 4133 | * Filter the extension of the emoji files. |
| 4134 | * |
| 4135 | * @since 4.2.0 |
| 4136 | * |
| 4137 | * @param string The emoji extension. Default .png. |
| 4138 | */ |
| 4139 | 'ext' => apply_filters( 'emoji_ext', '.png' ), |
| 4140 | ); |
| 4141 | |
| 4142 | $version = 'ver=' . $wp_version; |
| 4143 | |
| 4144 | if ( SCRIPT_DEBUG ) { |
| 4145 | $settings['source'] = array( |
| 4146 | /** This filter is documented in wp-includes/class.wp-scripts.php */ |
| 4147 | 'wpemoji' => apply_filters( 'script_loader_src', includes_url( "js/wp-emoji.js?$version" ), 'wpemoji' ), |
| 4148 | /** This filter is documented in wp-includes/class.wp-scripts.php */ |
| Line | Code |
| 4236 | * @return string The encoded content. |
| 4237 | */ |
| 4238 | function wp_staticize_emoji( $text ) { |
| 4239 | $text = wp_encode_emoji( $text ); |
| 4240 | |
| 4241 | /** This filter is documented in wp-includes/formatting.php */ |
| 4242 | $cdn_url = apply_filters( 'emoji_url', set_url_scheme( '//s.w.org/images/core/emoji/72x72/' ) ); |
| 4243 | |
| 4244 | /** This filter is documented in wp-includes/formatting.php */ |
| 4245 | $ext = apply_filters( 'emoji_ext', '.png' ); |
| 4246 | |
| 4247 | $output = ''; |
| 4248 | /* |
| 4249 | * HTML loop taken from smiley function, which was taken from texturize function. |
| 4250 | * It'll never be consolidated. |
| 4251 | * |
| 4252 | * First, capture the tags as well as in between. |
| 4253 | */ |
| 4254 | $textarr = preg_split( '/(<.*>)/U', $text, -1, PREG_SPLIT_DELIM_CAPTURE ); |