Skip to content

Instantly share code, notes, and snippets.

@ooksanen
Last active May 12, 2019 12:15
Show Gist options
  • Save ooksanen/5e45d8745e70b0094d56ab4eda469907 to your computer and use it in GitHub Desktop.
Save ooksanen/5e45d8745e70b0094d56ab4eda469907 to your computer and use it in GitHub Desktop.
Remove Sites -> Add New menu item from WP Multisite Network Admin
add_action( 'network_admin_menu', function () {
remove_submenu_page( 'sites.php', 'site-new.php' );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment