Forums
Forums / Plugin: Admin and Site Enhancements (ASE) / Remove comments
(@florin88)
1 year, 4 months ago
When comments are disabled, the page Comments still appears in the admin side menu. Shouldn’t this be hidden?
And the code to remove it is as simple as:
add_action(‘admin_menu’, function () {
remove_menu_page(‘edit-comments.php’);
});
(@qriouslad)
@florin88 Thanks for the suggestion and snippet. it’s possible that people want to disable commenting (stop accepting new comments), but still have access to old/existing comments via the Comments admin menu.
(@pressthemes1)
1 year, 3 months ago
@florin88 Not needed, just enabling Admin Menu Organizer witch will allow you to hide comment page
The topic ‘Remove comments’ is closed to new replies.
(@florin88)
1 year, 4 months ago
When comments are disabled, the page Comments still appears in the admin side menu. Shouldn’t this be hidden?
And the code to remove it is as simple as:
add_action(‘admin_menu’, function () {
remove_menu_page(‘edit-comments.php’);
});