Last active
December 21, 2015 16:39
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: