Skip to content

Instantly share code, notes, and snippets.

@rohmann
Last active December 21, 2015 16:39
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save rohmann/6334639 to your computer and use it in GitHub Desktop.
Removes the "Gimme a site / Just a username" option from Wordpress multisite signups. http://git.io/NO6z0A
<?php
function remove_signup_option(){
//Predefine what kind of registration is happening. wp-signup.php won't show the option if one is declared
global $active_signup;
$active_signup='blog';
}
add_action('signup_hidden_fields','remove_signup_option');
@rohmann
Copy link
Author

rohmann commented Sep 10, 2013

This can be placed in the primary theme's functions.php, within a plugin active on the primary site, or in a plugin in the mu-plugins folder

For quick implementation without coding, use these steps:

  1. Download the PHP file by click clicking the raw icon above (see image) and chosing "Save link as"
  2. Upload that file to the wp-content/mu-plugins folder
    alt text

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment