-
Henry Wright replied to the topic Setting User Role During Custom Registration in the forum Creating & Extending 9 years, 7 months ago
Hi @ch1n3s3b0y
Are you sure
$POST_['user_type']
is set?switch( $POST_['user_type'] ) {
case 'customer':
$new_role = 'customer';
break;
case 'guru':
$new_role = 'expert';
break;
default:
$new_role = 'user_role_is_neither_customer_or_expert';
}Try adding a default case to your switch…[Read more]
-
Henry Wright replied to the topic Setting User Role During Custom Registration in the forum Creating & Extending 9 years, 7 months ago
Hi @ch1n3s3b0y
Are you sure
$POST_['user_type']
is set?switch( $POST_['user_type'] ) {
case "customer":
$new_role = 'customer';
break;
case "guru":
$new_role = 'expert';
break;
default:
$new_role = 'user_role_is_neither_customer_or_expert';
}Try adding a default case to your switch…[Read more]
-
Henry Wright replied to the topic Adding Member Registration Form to New Pages in the forum How-to & Troubleshooting 9 years, 9 months ago
Hi @ch1n3s3b0y
I don’t think there’s a template tag or shortcode available which will let you insert the registration form. To the best of my knowledge, if you want the form in multiple templates then you have to insert the form manually.
-
Henry Wright replied to the topic How To bp_set_member_type? in the forum Creating & Extending 9 years, 10 months ago
Hi @ch1n3s3b0y
To set a default member type, try adding this to either your theme’s functions.php file or your bp-custom.php file.
function my_set_default_member_type( $user_id, $user_login, $user_password, $user_email, $usermeta ) {
[Read more]
// Set the member's type to student
bp_set_member_type( $user_id, 'student' );
}
add_action(… -
Henry Wright replied to the topic BuddyPress Users with Tags as Taxonomy in the forum Creating & Extending 9 years, 10 months ago
Hi @ch1n3s3b0y
Do you mean create a new custom taxonomy called users and then each time a user registers, you want a new term to be created?
If so then check out these resources:
https://codex.wordpress.org/Taxonomies
You’ll need to use
register_taxonomy()
to create your new taxonomy (see here)To insert a new term you can use
wp_insert_term()
…[Read more] -
Henry Wright replied to the topic BuddyPress Users with Tags as Taxonomy in the forum Creating & Extending 9 years, 10 months ago
Hi @ch1n3s3b0y
Do you mean create a new custom taxonomy called users and then each time a user registers, you want a new term to be created?
If so then check out these resources:
https://codex.wordpress.org/Taxonomies
You’ll need to use
register_taxonomy()
(see here)To insert a new term you can use
wp_insert_term()
(see here)When you come…[Read more]
-
Henry Wright replied to the topic BuddyPress Users with Tags as Taxonomy in the forum Creating & Extending 9 years, 10 months ago
Hi @ch1n3s3b0y
Do you mean create a new custom taxonomy called users. Then each time a user registers, you want a new term to be created?
If so then check out these resources:
https://codex.wordpress.org/Taxonomies
You’ll need to use
register_taxonomy()
(see here)To insert a new term you can use
wp_insert_term()
(see here)When you come to…[Read more]
@ch1n3s3b0y
Active 8 years, 1 month ago