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 3 times in this file.
| Line | Code |
|---|---|
| 5968 | */ |
| 5969 | 'svgExt' => apply_filters( 'emoji_svg_ext', '.svg' ), |
| 5970 | ); |
| 5971 | |
| 5972 | $version = 'ver=' . get_bloginfo( 'version' ); |
| 5973 | |
| 5974 | if ( SCRIPT_DEBUG ) { |
| 5975 | $settings['source'] = array( |
| 5976 | /** This filter is documented in wp-includes/class-wp-scripts.php */ |
| 5977 | 'wpemoji' => apply_filters( 'script_loader_src', includes_url( "js/wp-emoji.js?$version" ), 'wpemoji' ), |
| 5978 | /** This filter is documented in wp-includes/class-wp-scripts.php */ |
| 5979 | 'twemoji' => apply_filters( 'script_loader_src', includes_url( "js/twemoji.js?$version" ), 'twemoji' ), |
| 5980 | ); |
| 5981 | } else { |
| 5982 | $settings['source'] = array( |
| 5983 | /** This filter is documented in wp-includes/class-wp-scripts.php */ |
| 5984 | 'concatemoji' => apply_filters( 'script_loader_src', includes_url( "js/wp-emoji-release.min.js?$version" ), 'concatemoji' ), |
| 5985 | ); |
| 5986 | } |
| 5987 | |
| 5988 | wp_print_inline_script_tag( |
| 5989 | wp_json_encode( $settings, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ), |
| 5990 | array( |
| 5991 | 'id' => 'wp-emoji-settings', |
| 5992 | 'type' => 'application/json', |
| 5993 | ) |