function plt_hide_social_media_share_buttons_menus() { //Hide the "Settings → Social Sharing" menu. remove_submenu_page('options-general.php', 'mozedia-social-sharing'); } add_action('admin_menu', 'plt_hide_social_media_share_buttons_menus', 11);
Where do I put this code?