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.
| Line | Code |
|---|---|
| 2793 | /** |
| 2794 | * Filters the Smiley image URL before it's used in the image element. |
| 2795 | * |
| 2796 | * @since 2.9.0 |
| 2797 | * |
| 2798 | * @param string $smiley_url URL for the smiley image. |
| 2799 | * @param string $img Filename for the smiley image. |
| 2800 | * @param string $site_url Site URL, as returned by site_url(). |
| 2801 | */ |
| 2802 | $src_url = apply_filters( 'smilies_src', includes_url( "images/smilies/$img" ), $img, site_url() ); |
| 2803 | |
| 2804 | return sprintf( '<img src="%s" alt="%s" class="wp-smiley" style="height: 1em; max-height: 1em;" />', esc_url( $src_url ), esc_attr( $smiley ) ); |
| 2805 | } |
| 2806 | |
| 2807 | /** |
| 2808 | * Convert text equivalent of smilies to images. |
| 2809 | * |
| 2810 | * Will only convert smilies if the option 'use_smilies' is true and the global |
| 2811 | * used in the function isn't empty. |