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 |
|---|---|
| 2115 | * |
| 2116 | * @since 2.5.0 |
| 2117 | * |
| 2118 | * @param string $avatar Image tag for the user's avatar. |
| 2119 | * @param int|object|string $id_or_email A user ID, email address, or comment object. |
| 2120 | * @param int $size Square avatar width and height in pixels to retrieve. |
| 2121 | * @param string $alt Alternative text to use in the avatar image tag. |
| 2122 | * Default empty. |
| 2123 | */ |
| 2124 | return apply_filters( 'get_avatar', $avatar, $id_or_email, $size, $default, $alt ); |
| 2125 | } |
| 2126 | endif; |
| 2127 | |
| 2128 | if ( !function_exists( 'wp_text_diff' ) ) : |
| 2129 | /** |
| 2130 | * Displays a human readable HTML representation of the difference between two strings. |
| 2131 | * |
| 2132 | * The Diff is available for getting the changes between versions. The output is |
| 2133 | * HTML, so the primary use is for displaying the changes. If the two strings |