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 |
---|---|
135 | $posts_columns['author'] = __( 'Author' ); |
136 | //$posts_columns['tags'] = _x( 'Tags', 'column name' ); |
137 | /* translators: column name */ |
138 | if ( !$this->detached ) { |
139 | $posts_columns['parent'] = _x( 'Attached to', 'column name' ); |
140 | $posts_columns['comments'] = '<span class="vers"><img alt="Comments" src="' . esc_url( admin_url( 'images/comment-grey-bubble.png' ) ) . '" /></span>'; |
141 | } |
142 | /* translators: column name */ |
143 | $posts_columns['date'] = _x( 'Date', 'column name' ); |
144 | $posts_columns = apply_filters( 'manage_media_columns', $posts_columns, $this->detached ); |
145 |
|
146 | return $posts_columns; |
147 | } |
148 |
|
149 | function get_sortable_columns() { |
150 | return array( |
151 | 'title' => 'title', |
152 | 'author' => 'author', |
153 | 'parent' => 'parent', |