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 |
---|---|
134 | $selected = ($default == $default_key) ? 'checked="checked" ' : ''; |
135 | $avatar_list .= "\n\t<label><input type='radio' name='avatar_default' id='avatar_{$default_key}' value='{$default_key}' {$selected}/> "; |
136 |
|
137 | $avatar = get_avatar( $user_email, $size, $default_key ); |
138 | $avatar_list .= preg_replace("/src='(.+?)'/", "src='\$1&forcedefault=1'", $avatar); |
139 |
|
140 | $avatar_list .= ' ' . $default_name . '</label>'; |
141 | $avatar_list .= '<br />'; |
142 | } |
143 | echo apply_filters('default_avatar_select', $avatar_list); |
144 | ?> |
145 |
|
146 | </fieldset></td> |
147 | </tr> |
148 |
|
149 | </table> |
150 |
|
151 |
|
152 | <p class="submit"> |