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 |
---|---|
688 | $posts_columns = array(); |
689 | $posts_columns['cb'] = '<input type="checkbox" />'; |
690 | $posts_columns['title'] = _c('Post|noun'); |
691 | $posts_columns['author'] = __('Author'); |
692 | $posts_columns['categories'] = __('Categories'); |
693 | $posts_columns['tags'] = __('Tags'); |
694 | if ( !isset($_GET['post_status']) || !in_array($_GET['post_status'], array('pending', 'draft', 'future')) ) |
695 | $posts_columns['comments'] = '<div class="vers"><img alt="Comments" src="images/comment-grey-bubble.png" /></div>'; |
696 | $posts_columns['date'] = __('Date'); |
697 | $posts_columns = apply_filters('manage_posts_columns', $posts_columns); |
698 |
|
699 | return $posts_columns; |
700 | } |
701 |
|
702 | // define the columns to display, the syntax is 'internal name' => 'display name' |
703 | /** |
704 | * {@internal Missing Short Description}} |
705 | * |
706 | * @since unknown |