In this tutorial, I will show you how can you remove a column from posts in the admin panel.
For installing lots of plugin on the website, sometimes we see lots of columns and it looks very unclean even you can’t edit a post perfectly.
Now I will show you how can you remove unusable column so that it looks good. Follow these steps below:
1. Go to your theme functions.php
2.Then Paste this code
function bc_own_post_column_manage( $columns ) { unset($columns['date']); unset($columns['author']); unset($columns['tags']); return $columns; } add_filter( 'manage_posts_columns' , 'bc_own_post_column_manage' );
After adding this date, author and tags column will be removed. You can customize this code easily. Example, If you want to show the date column again, Just remove the unset function line.
If you want to remove a new column, then create a new unset() function under the existing unset function then add the same code – unset($columns[‘title’]); . Add the column name there whatever you want.
That’s it!
Let’s talk about your project. Contact us today and we’ll get back to you soon.