Hi @kbarzallo,
You can use the following code:
$query_args[‘role’] = apply_filters( ‘wppb_edit_profile_user_dropdown_role’, ” );
add_filter( ‘wppb_edit_profile_user_dropdown_role’, ‘wppbc_customize_edit_profile_dropdown_roles’);
function wppbc_customize_edit_profile_dropdown_roles( $query_args )
{
return ‘subscriber’;}
You can change ‘subscriber’ with desired role slug.
Here you can see more information about how to add the code: https://www.cozmoslabs.com/docs/profile-builder-2/developers-knowledge-base/
Please let me know if you need any help or encounter any issues!
Kind regards,
Thread Starter
kbarba
(@kbarzallo)
Hello @madalinaruzsa ,
thank you very much for your reply, that’s what I was looking for, thank you!
I have a couple of questions:
– I would like that when the administrator is on the edit profile page, you can also edit the account of the same, but only him, not all users administrators, how would it be?
– I have a registration form where the user chooses his role when registering, but I would like to add a second role when submitting the registration, is it possible?
Thank you very much and best regards.
Hi @kbarzallo,
1. Unfortunately it is not possible. Administrators have access to everything and can edit everything.
2. Sorry, but we are not allowed to speak about the paid versions here. In case you would like to have that conversation please open a support ticket here: https://www.cozmoslabs.com/support/open-ticket/
Kind regards,