Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: manage_{$screen->id}_sortable_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
599      function get_column_info() {
600           if ( isset( $this->_column_headers ) )
601                return $this->_column_headers;
602
603           $screen = get_current_screen();
604
605           $columns = get_column_headers( $screen );
606           $hidden = get_hidden_columns( $screen );
607
608           $_sortable = apply_filters( "manage_{$screen->id}_sortable_columns", $this->get_sortable_columns() );
609
610           $sortable = array();
611           foreach ( $_sortable as $id => $data ) {
612                if ( empty( $data ) )
613                     continue;
614
615                $data = (array) $data;
616                if ( !isset( $data[1] ) )
617                     $data[1] = false;