Skip to content

Commit

Permalink
Hooking msum_add_roles to vanilla "user_register" hook so that it *sh…
Browse files Browse the repository at this point in the history
…ould* work with all plugins that use the vanilla WP User registration API.
  • Loading branch information
thenbrent committed Dec 6, 2011
1 parent 8416db8 commit 8826004
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ms-user-management.php
Expand Up @@ -5,7 +5,7 @@
Description: Running a WordPress network? You no longer need to manually add users to each of your sites.
Author: Brent Shepherd
Author URI: http://find.brentshepherd.com/
Version: 1.0
Version: 1.0-a
Network: true
*/

Expand All @@ -32,6 +32,7 @@ function msum_add_roles( $user_id ){
}
add_action( 'wpmu_activate_user', 'msum_add_roles', 10, 1 );
add_action( 'wpmu_new_user', 'msum_add_roles', 10, 1 );
add_action( 'user_register', 'msum_add_roles', 10, 1 );


/**
Expand Down
6 changes: 6 additions & 0 deletions readme.txt
Expand Up @@ -73,6 +73,9 @@ Add a new topic on the [WordPress Support Forum](http://wordpress.org/tags/multi

== Changelog ==

= 1.1 =
* The msum_add_roles() function is now called on vanilla "user_register" hook so that it *should* work with all plugins that use the standard WP User registration API, not just WP Network/Multisite plugins

= 1.0 =
* Hooking the `msum_add_roles()` function to the `wpmu_new_user` action.

Expand Down Expand Up @@ -107,6 +110,9 @@ Add a new topic on the [WordPress Support Forum](http://wordpress.org/tags/multi

== Upgrade Notice ==

= 1.1 =
Optional Upgrade: Improved computability with plugins designed for standard WordPress sites (not just Network/Multisite WordPress installs)

= 1.0 =
Optional Upgrade: only upgrade if you are adding a large number of new users manually.

Expand Down

0 comments on commit 8826004

Please sign in to comment.