function plt_hide_social_link_on_footer_menus() { //Hide the "Settings → Social links footer" menu. remove_submenu_page('options-general.php', 'slfplugin-options'); } add_action('admin_menu', 'plt_hide_social_link_on_footer_menus', 11);
Where do I put this code?