Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (8 sloc) 353 Bytes
add_action('user_register', 'uag_user_register' );
function uag_user_register ( $user_id ) {
if ($user_id != null) {
if ( $group = Groups_Group::read_by_name( 'Premium' ) ) {
$result = Groups_User_Group::create( array( "user_id"=>$user_id, "group_id"=>$group->group_id ) );
}
}
}
You can’t perform that action at this time.