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 |
|---|---|
| 364 | $posts_columns = array(); |
| 365 | $posts_columns['cb'] = '<input type="checkbox" />'; |
| 366 | $posts_columns['icon'] = ''; |
| 367 | $posts_columns['media'] = _c('Media|media column header'); |
| 368 | $posts_columns['desc'] = _c('Description|media column header'); |
| 369 | $posts_columns['date'] = _c('Date Added|media column header'); |
| 370 | $posts_columns['parent'] = _c('Appears with|media column header'); |
| 371 | $posts_columns['comments'] = '<div class="vers"><img alt="Comments" src="images/comment-grey-bubble.png" /></div>'; |
| 372 | $posts_columns['location'] = _c('Location|media column header'); |
| 373 | $posts_columns = apply_filters('manage_media_columns', $posts_columns); |
| 374 | |
| 375 | return $posts_columns; |
| 376 | } |
| 377 | |
| 378 | function wp_manage_pages_columns() { |
| 379 | $posts_columns = array(); |
| 380 | $posts_columns['cb'] = '<input type="checkbox" />'; |
| 381 | if ( 'draft' === $_GET['post_status'] ) |
| 382 | $posts_columns['modified'] = __('Modified'); |