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.
I have uploaded v4.4.1. beta-2 for Email Users. This version changes the custom filters previously defined to be a “user” filter and introduces a “group” filter. If you have used the “Send to Group” feature, you can now define a series of filters that you can send to. There are examples of sending to the “Police” and “Fire” departments in the example filter plugin (see below).
I have updated the example plugin to create the filters, you download it and drop it into your plugins directory to see menus like shown in the beta-1 post.
There is also a new option on the plugin settings page to control where bounced emails are sent.
I have fixed a couple of minor bugs, added German Language support and introduced new functionality to send email to a custom list of users based on meta data. The ability to target a specific list of users based on user meta data is a feature that was requested a while back on the WordPress support form.
The new Customer Meta Filter List functionality allows the the site to create a custom list of users by adding an action in either the theme’s functions.php file or in a stand-alone plugin.
Unfortunately I ran into a WordPress limitation while working on this functionality. The ability to match user meta data through the WordPress get_users() API doesn’t work as expected with the LIKE and NOT LIKE comparisons. In an effort to protect the SQL, WordPress wraps the value being compared with wildcards to the match is either too permissive (matches too much) or too restrictive (matches to little).
I have opened a WordPress Trac ticket and submitted a patch for this problem but until it gets fixed (or the patch in the Trac ticket is applied), only standard comparisons work. The “Last Name: M” example won’t work without the patch nor will the “First Name: Not D”.
I have written an example plugin to create the above filters, you download it and drop it into your plugins directory to see menus like shown above: