Hiding the number of comments in the WordPress admin
The article will be useful for those, who, like me, uses static pages to display a non-standard type of content. When you need to display content in several columns or add a slider to it, at the same time, it is pointless to leave comments in the admin panel for such pages.
Today I will tell, how to remove the column for the number of comments in the list of pages published on the site. For this I have a prepared code snippet, which needs to be inserted into the functions.php file of your template.
Code to hide the number of comments
1 2 3 4 5 | function remove_pages_count_columns($defaults) { unset($defaults['comments']); return $defaults; } add_filter('manage_pages_columns', 'remove_pages_count_columns'); |
Code protested, everything works great. Good luck in website development.
/*

- Basic web design course;
- Site layout;
- General course on CMS WordPress and continuation of the course on template development;
- Website development in PHP.




