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 |
|---|---|
| 763 | if (strpos($_SERVER['HTTP_USER_AGENT'], 'Firefox') !== false) |
| 764 | $link .= 'setTimeout(a,0);'; |
| 765 | else |
| 766 | $link .= 'a();'; |
| 767 | |
| 768 | $link .= "void(0);"; |
| 769 | |
| 770 | $link = str_replace(array("\r", "\n", "\t"), '', $link); |
| 771 | |
| 772 | return apply_filters('shortcut_link', $link); |
| 773 | } |
| 774 | |
| 775 | /** Return the site url |
| 776 | * |
| 777 | * |
| 778 | * @package WordPress |
| 779 | * @since 2.6 |
| 780 | * |
| 781 | * Returns the 'site_url' option with the appropriate protocol, 'https' if is_ssl() and 'http' otherwise. |