ControlledChaos
9/29/2016 - 3:28 PM

Hide post and page columns on "Manage" screens.

Hide post and page columns on "Manage" screens.

<?php
/ **
 * Hide management columns
 *
 * Default columns: cb (checkbox),
 * title, author, categories, tags, comments, date.
 */

function ccd_hide_columns( $columns ) {
  // Example removes author and date columns
	unset( $columns['author'], $columns['date'] );

	return $columns;
}

function ccd_column_init() {
	add_filter( 'manage_posts_columns' , 'ccd_hide_columns' );
	add_filter( 'manage_pages_columns' , 'ccd_hide_columns' );
}
add_action( 'admin_init' , 'ccd_column_init' );

?>

Hide Management Columns

WordPress Snippet