function plt_hide_dco_comment_attachment_menus() { //Hide the "Settings → DCO Comment Attachment" menu. remove_submenu_page('options-general.php', 'dco-comment-attachment'); } add_action('admin_menu', 'plt_hide_dco_comment_attachment_menus', 11);
Where do I put this code?