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 |
|---|---|
| 254 | |
| 255 | // Spam Comments |
| 256 | $num = number_format_i18n($num_comm->spam); |
| 257 | if ( current_user_can( 'moderate_comments' ) ) |
| 258 | $num = "<a href='edit-comments.php?comment_status=spam'><span class='spam-count'>$num</span></a>"; |
| 259 | echo '<td class="b b-spam">'.$num.'</td>'; |
| 260 | echo '<td class="last t spam">' . __ngettext( 'Spam', 'Spam', $num_comm->spam ) . '</td>'; |
| 261 | |
| 262 | echo "</tr>"; |
| 263 | do_action('right_now_table_end'); |
| 264 | echo "\n\t</table>\n\t</div>"; |
| 265 | |
| 266 | echo "\n\t".'<div class="versions">'; |
| 267 | $ct = current_theme_info(); |
| 268 | $sidebars_widgets = wp_get_sidebars_widgets(); |
| 269 | $num_widgets = array_reduce( $sidebars_widgets, create_function( '$prev, $curr', 'return $prev+count($curr);' ), 0 ); |
| 270 | $num = number_format_i18n( $num_widgets ); |
| 271 | |
| 272 | echo "\n\t<p>"; |