Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

How can i disable/remove the columns for Media Library? I want for author and comments column.

Thanks in advance.

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

The hook for these columns is manage_media_columns. So just filter the columns here:

add_filter( 'manage_media_columns', 'wpse_77687_remove_media_columns' );

function wpse_77687_remove_media_columns( $columns )
{
    unset( $columns['author'] );
    unset( $columns['comments'] );
    return $columns;
}
share|improve this answer
    
I can put in the field unset another columns like : dates. etc.. Many thanks, works! –  MikeD Dec 30 '12 at 12:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.