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 |
|---|---|
| 269 | |
| 270 | // convert it to table rows |
| 271 | $out = ''; |
| 272 | $class = ''; |
| 273 | $count = 0; |
| 274 | foreach( $tags as $tag ) |
| 275 | $out .= _tag_row( $tag, ++$count % 2 ? ' class="alternate"' : '' ); |
| 276 | |
| 277 | // filter and send to screen |
| 278 | $out = apply_filters('tag_rows', $out); |
| 279 | echo $out; |
| 280 | return $count; |
| 281 | } |
| 282 | |
| 283 | // define the columns to display, the syntax is 'internal name' => 'display name' |
| 284 | function wp_manage_posts_columns() { |
| 285 | $posts_columns = array(); |
| 286 | $posts_columns['cb'] = '<input type="checkbox" onclick="checkAll(document.getElementById(\'posts-filter\'));" />'; |
| 287 | if ( 'draft' === $_GET['post_status'] ) |