Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #24313, comment 7


Ignore:
Timestamp:
05/14/2015 05:13:38 PM (11 years ago)
Author:
chriscct7
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24313, comment 7

    initial v1  
    11This is what you can use. I'm using it to remove columns, but you could use it to add new ones conditionally as well.
    22{{{
    3 function edd_fes_columns_head( $defaults ) {
     3function column_headers( $defaults ) {
    44    // Check that this is not all view, else it throws an error
    55    if ( isset( $_REQUEST[ 'post_status' ] ) ) {
     
    1010    }
    1111}
    12 add_filter( 'manage_edit-download_columns', array( $this, 'edd_fes_columns_head' ) );
     12add_filter( 'manage_edit-download_columns', array( $this, 'column_headers' ) );
    1313}}}