Remove Custom Sidebar column from custom post admin
-
I’m trying to remove the ‘Custom Sidebar’ column from a custom post type admin list. I can remove all of the others I don’t need except this. I’m thinking I have the name wrong (custom-sidebars), see below:
if ( ! function_exists( ‘custom_manage_posts_column’ ) ) {
function custom_manage_posts_column( $columns ) {
unset( $columns[‘date’] );
unset( $columns[‘custom-sidebars’] );
return $columns;
}
}
if ( has_filter( ‘manage_posts_columns’ ) ) {
add_filter( ‘manage_posts_columns’, ‘custom_manage_posts_column’ );
}Any help would be appreciated…
The topic ‘Remove Custom Sidebar column from custom post admin’ is closed to new replies.