• Hi Mike,

    I’m about to launch my new website which includes the email users plugin.

    I used the plugin ‘user groups’ to add custom groups which my users are part of. Off course they are also part of the roles of wordpress like subscriber, administrator etc.

    I have a few questions…

    1) Some user groups show up in the overview, without having any users. Some groups who do have users, but which are pending, don’t show up in the list.

    2) How to make the roles nog appear in the overview of the groups? Is there a way to exclude specific groups or roles? Perhaps this could also be an option for excluding users?

    3) Why aren’t the roles that do show up in the overview of groups translated like to core of wordpress does

    Thanx for the help!

    Gr, Bart

    https://wordpress.org/plugins/email-users/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mike Walsh

    (@mpwalsh8)

    1. Roles which have no users assigned to them should never show up. Likewise, Roles which have users but none of the users have their settings such that they receive email, should not show up.
      I don’t recall how User Groups integration works off the top of my head but it should be similar to WordPress roles in that if there are no users in the group or no users that receive email in the group, the group shouldn’t be listed.
    2. You can’t prevent the standard WordPress roles from appearing in the list. The only way to do that if all users were assigned no role from the WordPress perspective but doing that would make it really hard to use your web site. The WordPress roles is the basis for groups and there is no facility to turn them off.
    3. Probably because I missed something. Roles are queried from WordPress, they aren’t strings that are easily identified in the source code. Essentially the plugin asks WordPress for a list of roles which WordPress provides. The plugin then loops through the list and determines whether or not there are any potential recipients in each role.
    Thread Starter bvstrien

    (@bvstrien)

    Hi Mike:

    1) I have 2 groups who have no users, but do show up…strange.
    2) To bad i can;t turn them off…On the other hand, not a really big problem, if i just can translate these roles, because they show in english and not in dutch (my language). The subscribers are mentioned ‘subscriber’ instead of ‘Abonee’ (dutch). It would be great if i can change this. Is there a possibility to do so?
    3) See 2 -> is there a way to fix this or perhaps rename it bij hand?

    Plugin Author Mike Walsh

    (@mpwalsh8)

    1. I justed looked at the User Groups integration code and it does indeed return empty groups. Not sure why I implemented it that way but changing it is fairly simple so it is now in my development branch.
    2. I’ll look at adding something to allow disabling WordPress roles IF another group plugin is present.
    3. Nope, it doesn’t look like it. In fact, the code currently wraps the variable returned by the WordPress API for the role names in the translation function however it doesn’t seem to work. I took a look at the translation guide for WordPress where I found this statement:

      If you need to remember one thing: translatable strings are parsed from special function calls in the source-code, they are not obtained at run-time.

      So it looks like it isn’t possible to translate them the way I am processing them.

    Thread Starter bvstrien

    (@bvstrien)

    Thanx Mike,

    1) I’d appreciate it if there would be a fix for the groups.
    2) That would be awesome!
    3) I created new roles with the name of the trnslation i had in in mind. That fixed it for me 🙂

    Plugin Author Mike Walsh

    (@mpwalsh8)

    Email Users v4.6.3-beta-11 is available for testing which fixes #1. I have not added #2, I’ll see if I can do it in the future. I really need to get this version out so I will likely wait for 4.6.4 to do #2.

    Thread Starter bvstrien

    (@bvstrien)

    Great job Mike! Thanx! Hope you add #2 soon 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Exclude roles/groups from showing in groupmail view?’ is closed to new replies.