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 |
---|---|
579 | function get_column_info() { |
580 | if ( isset( $this->_column_headers ) ) |
581 | return $this->_column_headers; |
582 |
|
583 | $screen = get_current_screen(); |
584 |
|
585 | $columns = get_column_headers( $screen ); |
586 | $hidden = get_hidden_columns( $screen ); |
587 |
|
588 | $_sortable = apply_filters( "manage_{$screen->id}_sortable_columns", $this->get_sortable_columns() ); |
589 |
|
590 | $sortable = array(); |
591 | foreach ( $_sortable as $id => $data ) { |
592 | if ( empty( $data ) ) |
593 | continue; |
594 |
|
595 | $data = (array) $data; |
596 | if ( !isset( $data[1] ) ) |
597 | $data[1] = false; |