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 |
---|---|
52 | $posts_columns['modified'] = __('Submitted'); |
53 | else |
54 | $posts_columns['date'] = __('When'); |
55 | $posts_columns['title'] = __('Title'); |
56 | $posts_columns['categories'] = __('Categories'); |
57 | if ( !in_array($_GET['post_status'], array('pending', 'draft', 'future')) ) |
58 | $posts_columns['comments'] = '<div style="text-align: center">' . __('Comments') . '</div>'; |
59 | $posts_columns['author'] = __('Author'); |
60 |
|
61 | $posts_columns = apply_filters('manage_posts_columns', $posts_columns); |
62 |
|
63 | // you can not edit these at the moment |
64 | $posts_columns['control_view'] = ''; |
65 | $posts_columns['control_edit'] = ''; |
66 | $posts_columns['control_delete'] = ''; |
67 |
|
68 | ?> |
69 |
|
70 | <h2><?php |