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 |
---|---|
291 | else |
292 | $posts_columns['date'] = __('Date'); |
293 | $posts_columns['title'] = __('Title'); |
294 | $posts_columns['author'] = __('Author'); |
295 | $posts_columns['categories'] = __('Categories'); |
296 | $posts_columns['tags'] = __('Tags'); |
297 | if ( !in_array($_GET['post_status'], array('pending', 'draft', 'future')) ) |
298 | $posts_columns['comments'] = '<div class="vers"><img alt="Comments" src="images/comment-grey-bubble.png" /></div>'; |
299 | $posts_columns['status'] = __('Status'); |
300 | $posts_columns = apply_filters('manage_posts_columns', $posts_columns); |
301 |
|
302 | return $posts_columns; |
303 | } |
304 |
|
305 | // define the columns to display, the syntax is 'internal name' => 'display name' |
306 | function wp_manage_media_columns() { |
307 | $posts_columns = array(); |
308 | $posts_columns['cb'] = '<input type="checkbox" onclick="checkAll(document.getElementById(\'posts-filter\'));" />'; |
309 | $posts_columns['icon'] = ''; |