• Resolved Florin88

    (@florin88)


    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’);

    });

Viewing 1 replies (of 1 total)
  • Plugin Author Bowo

    (@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.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.