Changes between Initial Version and Version 1 of Ticket #24313, comment 7
- Timestamp:
- 05/14/2015 05:13:38 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #24313, comment 7
initial v1 1 1 This is what you can use. I'm using it to remove columns, but you could use it to add new ones conditionally as well. 2 2 {{{ 3 function edd_fes_columns_head( $defaults ) {3 function column_headers( $defaults ) { 4 4 // Check that this is not all view, else it throws an error 5 5 if ( isset( $_REQUEST[ 'post_status' ] ) ) { … … 10 10 } 11 11 } 12 add_filter( 'manage_edit-download_columns', array( $this, ' edd_fes_columns_head' ) );12 add_filter( 'manage_edit-download_columns', array( $this, 'column_headers' ) ); 13 13 }}}