Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: manage_media_columns

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

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