Created
September 2, 2013 02:19
-
-
Save rohmann/6408706 to your computer and use it in GitHub Desktop.
Don't add a user to the primary blog on signup. http://git.io/thkt6g
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 | |
add_action('wpmu_activate_blog','remove_user_from_primary_site',999,5); | |
function remove_user_from_primary_site($blog_id, $user_id, $password, $title, $meta){ | |
remove_user_from_blog($user_id,1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This can be placed within a network activated plugin, or a plugin in the mu-plugins folder
For quick implementation without coding, use these steps: