• Resolved kbarba

    (@kbarzallo)


    Hello, I would like to know if there is a way that an administrator can only edit the profiles of users with subscriber role in the edit profile page, that is to say, that instead of appearing all users only appear those of that role.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Madalina Ruzsa

    (@madalinaruzsa)

    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.

    Plugin Support Madalina Ruzsa

    (@madalinaruzsa)

    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,

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Edit profile for subscribers only’ is closed to new replies.