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 |
|---|---|
| 5940 | */ |
| 5941 | 'svgExt' => apply_filters( 'emoji_svg_ext', '.svg' ), |
| 5942 | ); |
| 5943 | |
| 5944 | $version = 'ver=' . get_bloginfo( 'version' ); |
| 5945 | |
| 5946 | if ( SCRIPT_DEBUG ) { |
| 5947 | $settings['source'] = array( |
| 5948 | /** This filter is documented in wp-includes/class-wp-scripts.php */ |
| 5949 | 'wpemoji' => apply_filters( 'script_loader_src', includes_url( "js/wp-emoji.js?$version" ), 'wpemoji' ), |
| 5950 | /** This filter is documented in wp-includes/class-wp-scripts.php */ |
| 5951 | 'twemoji' => apply_filters( 'script_loader_src', includes_url( "js/twemoji.js?$version" ), 'twemoji' ), |
| 5952 | ); |
| 5953 | } else { |
| 5954 | $settings['source'] = array( |
| 5955 | /** This filter is documented in wp-includes/class-wp-scripts.php */ |
| 5956 | 'concatemoji' => apply_filters( 'script_loader_src', includes_url( "js/wp-emoji-release.min.js?$version" ), 'concatemoji' ), |
| 5957 | ); |
| 5958 | } |
| 5959 | |
| 5960 | wp_print_inline_script_tag( |
| 5961 | sprintf( 'window._wpemojiSettings = %s;', wp_json_encode( $settings ) ) . "\n" . |
| 5962 | file_get_contents( ABSPATH . WPINC . '/js/wp-emoji-loader' . wp_scripts_get_suffix() . '.js' ) |
| 5963 | ); |
| 5964 | } |
| 5965 | |