Re: Help with A Hook?
Thanks for the help Jeff!
I was able to get it all sorted out! Yeah! Now when users register they will automatically be added to the selected groups!
I am currently using WPMU, so I am using a WPMU Hook. Is there an easy way to register actions using either WP or WPMU Hooks so there wouldn’t need a second version of the plugin for single user wordpress.
The hook I am currently using is wpmu_new_user and I believe the single user equivalent is user_register. Is there a global value available to do something like this…
if ( $wpmu ) {
add_action ('wpmu_new_user', 'auto_join_new_user');
} else {
add_action('user_register', 'auto_join_new_user');
}