Skip to content

Instantly share code, notes, and snippets.

@rohmann
Created September 2, 2013 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rohmann/6408706 to your computer and use it in GitHub Desktop.
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
<?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);
}
@rohmann
Copy link
Author

rohmann commented Sep 10, 2013

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:

  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