bedava hesaplar nulled scripts mod apk indir mail kaydol youtube mp3 dönüştürücü

Hide some Columns of Portfolio List - Backend

edited March 10 in Portfolio


I would like to hide some columns on my Porftolio backend, for specific user roles (author). I am NOT talking about the "Screen options" tab on the top.

I managed to do it for certain default WordPress columns (author, date, comments), but I do not manage to find the right name/class that Betheme uses for the portfolio "categories" and "order" columns.

I am using the following code in my custom functions.php file:

if ( current_user_can('author') ) {

add_filter('manage_portfolio_posts_columns', function ( $columns ) 


unset($columns['author'], $columns['date'], $columns['comments'], $columns['portfolio_types'], $columns['portfolio_order'] );

return $columns;

} );


What should I correct or add to disable the "Categories" and "Oder" columns?

Thanks in advance,

Please sign in to unlock conversation.

If you don't have an account yet, please register now