mko
2/5/2017 - 10:55 AM

FUNCTIONS Serve per rimuovere colonne da post, page e da custom post type From https://codex.wordpress.org/Plugin_API/Filter_Reference/manag

FUNCTIONS Serve per rimuovere colonne da post, page e da custom post type From https://codex.wordpress.org/Plugin_API/Filter_Reference/manage_edit-post_type_columns

function my_columns_filter( $columns ) {
   unset($columns['author']);
   unset($columns['categories']);
   unset($columns['tags']);
   unset($columns['comments']);
   return $columns;
   }
       
    // Filter pages
    add_filter( 'manage_edit-page_columns', 'my_columns_filter',10, 1 );	

    // Filter Posts
    add_filter( 'manage_edit-post_columns', 'my_columns_filter',10, 1 );

    // Custom Post Type
    add_filter( 'manage_edit-CUSTOMPOSTTYPE_columns', 'my_columns_filter',10, 1 );