Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
WP action and callback function to remove comments from admin menu
function remove_comment_menu_page() {
remove_menu_page( 'edit-comments.php' );
add_action('admin_menu', 'remove_comment_menu_page');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.