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 |
---|---|
5925 | */ |
5926 | 'svgExt' => apply_filters( 'emoji_svg_ext', '.svg' ), |
5927 | ); |
5928 |
|
5929 | $version = 'ver=' . get_bloginfo( 'version' ); |
5930 |
|
5931 | if ( SCRIPT_DEBUG ) { |
5932 | $settings['source'] = array( |
5933 | /** This filter is documented in wp-includes/class-wp-scripts.php */ |
5934 | 'wpemoji' => apply_filters( 'script_loader_src', includes_url( "js/wp-emoji.js?$version" ), 'wpemoji' ), |
5935 | /** This filter is documented in wp-includes/class-wp-scripts.php */ |
5936 | 'twemoji' => apply_filters( 'script_loader_src', includes_url( "js/twemoji.js?$version" ), 'twemoji' ), |
5937 | ); |
5938 | } else { |
5939 | $settings['source'] = array( |
5940 | /** This filter is documented in wp-includes/class-wp-scripts.php */ |
5941 | 'concatemoji' => apply_filters( 'script_loader_src', includes_url( "js/wp-emoji-release.min.js?$version" ), 'concatemoji' ), |
5942 | ); |
5943 | } |
5944 |
|
5945 | wp_print_inline_script_tag( |
5946 | sprintf( 'window._wpemojiSettings = %s;', wp_json_encode( $settings ) ) . "\n" . |
5947 | file_get_contents( ABSPATH . WPINC . '/js/wp-emoji-loader' . wp_scripts_get_suffix() . '.js' ) |
5948 | ); |
5949 | } |
5950 |
|