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 |
---|---|
5897 | function _print_emoji_detection_script() { |
5898 | $settings = array( |
5899 | /** |
5900 | * Filters the URL where emoji png images are hosted. |
5901 | * |
5902 | * @since 4.2.0 |
5903 | * |
5904 | * @param string $url The emoji base URL for png images. |
5905 | */ |
5906 | 'baseUrl' => apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/14.0.0/72x72/' ), |
5907 |
|
5908 | /** |
5909 | * Filters the extension of the emoji png files. |
5910 | * |
5911 | * @since 4.2.0 |
5912 | * |
5913 | * @param string $extension The emoji extension for png files. Default .png. |
5914 | */ |
5915 | 'ext' => apply_filters( 'emoji_ext', '.png' ), |
Line | Code |
6010 | $possible_emoji[ $emojum ] = html_entity_decode( $emojum ); |
6011 | } |
6012 | } |
6013 |
|
6014 | if ( ! $possible_emoji ) { |
6015 | return $text; |
6016 | } |
6017 |
|
6018 | /** This filter is documented in wp-includes/formatting.php */ |
6019 | $cdn_url = apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/14.0.0/72x72/' ); |
6020 |
|
6021 | /** This filter is documented in wp-includes/formatting.php */ |
6022 | $ext = apply_filters( 'emoji_ext', '.png' ); |
6023 |
|
6024 | $output = ''; |
6025 | /* |
6026 | * HTML loop taken from smiley function, which was taken from texturize function. |
6027 | * It'll never be consolidated. |
6028 | * |