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 |
|---|---|
| 213 | $type = 'comments'; |
| 214 | $show = __('Comments'); |
| 215 | } else { |
| 216 | $show = ucwords( $type ); |
| 217 | } |
| 218 | $type_count = number_format_i18n( $type_count ); |
| 219 | $extra = $current_type === $type ? ' class="active"' : ''; |
| 220 | echo "<li $extra><a href='edit-comments.php?page=akismet-admin&ctype=$type'>$show ($type_count)</a></li>"; |
| 221 | } |
| 222 | do_action( 'akismet_tabs' ); // so plugins can add more tabs easily |
| 223 | ?> |
| 224 | </ul> |
| 225 | <?php |
| 226 | } |
| 227 | |
| 228 | if ($comments) { |
| 229 | ?> |
| 230 | <form method="post" action="<?php echo attribute_escape("$link?page=akismet-admin"); ?>" id="akismetsearch"> |
| 231 | <p> <input type="text" name="s" value="<?php if (isset($_POST['s'])) echo attribute_escape($_POST['s']); ?>" size="17" /> |