I’ve been working on Email-Users this week and have added quite a bit of functionality. Before I release it I’d like to get a few people put an early version through its paces so if you have a chance to test it out, please do so.
This new version has a number of new features:
All postboxes on the admin screens now have their own CSS ID and Class so they can be styled or easily hidden.
Email-Users now support integration with two User “Group” plugins: User Groups and User Access Manager. When you set up groups in either of these plugins you will be able to select them as recipients from the Group Email and Post/Page Notification pages.
Selection of Custom Filters as Group Recipients is no longer a separate action – it, along wit the Group support noted above, are all presented in the same target recipient selection list. This allows the Custom Filters to work on Post/Page Notifications as well.
A new action has been introduced: mailusers_update_custom_meta_filters This action will allow for updating meta filters dynamically just prior to their use. This is the best way to create complex meta filters or integrate other plugins. There is a good example in the plugin README file.
Chinese language support has been contributed.
Integration panel added to the Plugin Settings Page.
Updated language support files which incorporate 20+ new strings.
A few other things were cleaned up while I was tinkering with the code as well.
The way the patch was written it removed the ability to send to Groups based on standard WordPress Roles and replaced it with Groups defined by the User Groups plugin. While this is useful for the user who submitted the patch (thank you for doing so), I don’t think it is the right way to do this sort of integration in the general case.
I don’t think eliminating the standard functionality is always a good idea so I am incorporating the patch such that being able to target groups of users through either standard WordPress roles OR via User Groups defined groups is possible.
To that end, I have always considered the way I implemented custom groups and filters sort of half finished. While they work for sending email, they don’t work for Post and Page notifications which is a limitation. So I have decided to revamp how I am presenting groups of users for both Email and Notifications.
You will be able to mix and match Roles, User Groups (when the plugin is active) and Filters to target the recipients of Email and/or Notifications. I hope to have a beta release out later today for people to test with.
This morning I released an update to Email-Users (4.4.4). This update fixes problems with the meta filter functionality preventing sending email to specific users and an odd situation which could result in duplicate email to some users. You can find the update in the WordPress plugin repository or via an update on your WordPress Dashboard.
I made a mistake tagging the release so WordPress would recognize it which is why the version number jumped from 4.4.2 to 4.4.4.
I have posted a beta release of Email-Users v4.4.3 for testing purposes. This build addresses a problem with using the new Meta Filter functionality with a set of users and also fixes a situation which can result in duplicate emails when Notifications (Page or Post) are sent by selecting both Roles and Users.
Yesterday I released an update to Email-Users which addressed a problem when using the Email to Groups function. Too many users were incorrectly being selected as part of the group due to an initialization bug which has been fixed.
You can find the update in the WordPress Plugin Repository or via an update on your WordPress Dashboard.
This morning I incorporated the updated French language files and released Email-Users 4.4.1. This release fixes a number of issues people were having and introduces new functionality (via filters) to target specific groups of users based on their User Meta Data.
Here is a list of the key changes for this release:
Added German translation files (thank you Tobias Bechtold).
Fixed bug in Send to Groups where number of users receiving email was wrong.
Added internationalization support to Send to Group status messages.
Added support for sending email to users based on a custom meta filter.
Added support for sending email to groups based on a custom meta filter.
Added suppport for providing a bounce email address.
Fixed bug in Options form which prevented translation of strings.
Added support for defining email group meta filters based on meta key.
Implemented solution from @maximinime to fix lost Email-Users settings.
Removed invalid references to Marvin Labs.
Fixed bug where Post Excerpt wasn’t being used in email when present.
Updated French and Spanish language files.
Thanks to all of the people who have tested the various beta releases and provided the language file updates. The WordPress Plugin Repository has been updated and the update should appear on your WordPress Dashboard soon.
This morning I updated the beta version of Email Users 4.4.1 to beta-6. This version incorporates updated Spanish and German language files and fixes a few remaining links within the plugin which referred to the old plugin home page on <a href=”http://www.marvinlabs.com”>MarvinLabs.com</a>.
I had hoped beta-5 would be the final beta release however I am still waiting for updated French language files before 4.4.1 is released. Updates to other languages are welcome too however I no longer have the contact information for the Russian and Persian support files.
This morning I updated the beta version of Email Users 4.4.1 to beta-5. This version updates a number of the links within the plugin which referred to the old plugin home page on MarvinLabs.com which are no longer in existance.
I hope this is the final beta release before 4.4.1 goes out. All I am waiting for is some updates to language translation files.
This evening I updated the beta version of Email Users 4.4.1 to beta-4. This version addresses the issue with user settings reverting which was reported here, here, and here. I have implemented the solution proposed by @maximinime on the WordPress Support Forums.
This afternoon I updated the beta version of Email Users 4.4.1 to beta-3. This version improves the Custom Group filter options by introducing a new Custom Group Meta Key filter. It builds on the Custom Group Meta Filter but eliminates a lot of the work required if a filter on a Meta Key is desired instead of a Meta Key and Value pair.
For example the following code will yield a Send to Group Form with selections based on any possible value of a User Meta Key by the name of ‘department’:
The only required argument is the first one, which is the name of the Meta Key. The second argument is an optional Meta Value and the third argument is an optional callback which accepts two strings, Meta Key and Meta Value, and returns a string which is used as the selection text on the form.
I have updated the example plugin again to create the filter which results in the image above, the examples I have done previously are still in the file however are commented out. You can download it and drop it into your plugins directory to see menus like shown in the beta-1 post.