• Resolved lex713

    (@lex713)


    I am currently working on a website that has a bunch of different roles. What I am trying to attempt is when a user goes to the user list on the dashboard. The list will only show users that are apart of a certain role. So say an author goes to the user list I want only the subscribers to show. Now if an editor logs in I only want the list to show authors.

    I also want when a user registers a new account it sends an email to another user to activate there account. So say a person is making an account and they select author. I then want wp to send the master author role an email accepting or denying the account. Now if they pick subscriber it then emails the master subscriber.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Those are very custom features. I suggest you to check out the following plugin, see how it manages users and roles, and then try to extend it according to your needs:

    https://wordpress.org/plugins/wpfront-user-role-editor/

    Thread Starter lex713

    (@lex713)

    I was just wondering what the actual name of the plugin is I can’t find one by that name? Also is there a way to make your website English.

    Thread Starter lex713

    (@lex713)

    @a2hostingrj i downloaded the plugin but can’t figure out how to hide users from the user list or send an email per user.

    Moderator bcworkz

    (@bcworkz)

    The user list table uses WP_User_Query class to get the users shown. You can modify this query through the ‘pre_get_users’ action. Your action callback can set the “role__in” query var to limit which user roles are listed on the table. Use get_current_screen() to ensure you only alter the list table query and not other user queries.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘User list and activation’ is closed to new replies.