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 |
---|---|
1757 |
|
1758 | if (count($smiley) == 0) { |
1759 | return ''; |
1760 | } |
1761 |
|
1762 | $smiley = trim(reset($smiley)); |
1763 | $img = $wpsmiliestrans[$smiley]; |
1764 | $smiley_masked = esc_attr($smiley); |
1765 |
|
1766 | $srcurl = apply_filters('smilies_src', includes_url("images/smilies/$img"), $img, site_url()); |
1767 |
|
1768 | return " <img src='$srcurl' alt='$smiley_masked' class='wp-smiley' /> "; |
1769 | } |
1770 |
|
1771 | /** |
1772 | * Convert text equivalent of smilies to images. |
1773 | * |
1774 | * Will only convert smilies if the option 'use_smilies' is true and the global |
1775 | * used in the function isn't empty. |