Better Notifications for WordPress - Version 1.8.4

Version Description

  • 12th August 2020 =
  • Fixed: In certain situations, the password reset key would get modified when using the User Lost Password - For User notification.
  • Fixed: An issue in the Custom Fields add-on where the Send to Author checkbox did not send a User Custom Field Updated notification to the user.
  • Improved: Compatibility with the latest version of the Digest add-on.
  • Improved: Compatibility with the latest version of the Multisite add-on.
Download this release

Release Info

Developer voltronik
Plugin Icon 128x128 Better Notifications for WordPress
Version 1.8.4
Comparing to
See all releases

Code changes from version 1.8.3 to 1.8.4

README.txt CHANGED
@@ -1,693 +1,706 @@
1
- === Better Notifications for WP ===
2
- Contributors: voltronik
3
- Donate link: https://betternotificationsforwp.com/donate/
4
- Tags: notification, email, push, sms, alert, HTML, customize, bulk, trigger, CC, BCC
5
- Requires at least: 4.0
6
- Tested up to: 5.4.1
7
- Requires PHP: 5.6
8
- Stable tag: 1.8.3
9
- License: GPLv2 or later
10
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
-
12
- Supercharge your WordPress notifications using a WYSIWYG editor and shortcodes. Default and new notifications available. Add more power with Add-ons.
13
-
14
- == Description ==
15
-
16
- Better Notifications for WP is a simple but powerful plugin for beginners to advanced users that allows you to customise the email notifications that WordPress sends using the WYSIWYG editor and shortcodes. All of the default WordPress email notifications are available to customise as well as lots of new ones. You can choose to send notifications to individual users, multiple users, all users in a user role, multiple roles - you name it! You can also power-up your notifications with [Premium Add-ons](https://betternotificationsforwp.com/downloads/). Emails are sent out via your WordPress website (using `wp_mail`) but can be sent via SMTP using an appropriate 3rd party plugin should you wish.
17
-
18
- Here's a quick walkthrough of the plugin in action:
19
- [youtube https://www.youtube.com/watch?v=MxPUyRZPJ1Q]
20
-
21
- = An Example: =
22
- You want all the users in the Editor role to be notified via email when a new post is published and you'd like to customise it to include your logo along with the author's name and date / time it was published - with this plugin, that's easy.
23
-
24
- > A handy list of shortcodes you can use is available [here](https://betternotificationsforwp.com/shortcodes/ "Shortcodes for use in Better Notifications for WP").
25
-
26
- = Premium Add-ons =
27
- Power-up your notifications using add-ons:
28
-
29
- [Notification Add-on Bundles](https://betternotificationsforwp.com/add-on-bundles/) - Everything you need for your WordPress notifications. Save big when you buy an add-on bundle. Instant access.
30
-
31
- [Subscriptions (GDPR)](https://betternotificationsforwp.com/downloads/subscriptions-gdpr/) - Allow users to manage their subscriptions for BNFW notifications.
32
-
33
- [Conditional Notifications](https://betternotificationsforwp.com/downloads/conditional-notifications/) - Limit certain notifications depending on which categories, tags, post formats, or terms you choose.
34
-
35
- [Custom Fields](https://betternotificationsforwp.com/downloads/custom-fields/) - Provides a number of new shortcodes allowing you to include data from custom fields and custom user fields created using [ACF](https://wordpress.org/plugins/advanced-custom-fields/).
36
-
37
- [Send to Any Email](https://betternotificationsforwp.com/downloads/send-to-any-email/) - Send notifications to non-WordPress Users.
38
-
39
- [Digest](https://betternotificationsforwp.com/downloads/digest/) - Group multiple notifications into a single digest notification.
40
-
41
- [Global Override](https://betternotificationsforwp.com/downloads/per-post-override/) - Override some of the settings of notifications directly when editing a post, page, or custom post type.
42
-
43
- [Reminders](https://betternotificationsforwp.com/downloads/update-reminder/) - Send a reminder to your users and/or user roles when a post, page, or custom post type hasn't been updated after a set amount of time. Also send a notification when a user hasn't logged in for a set amount of time.
44
-
45
- [Multisite](https://betternotificationsforwp.com/downloads/multisite/) - Adds new notifications and shortcodes for WordPress Multisite to Better Notifications for WP.
46
-
47
- [Profile Builder](https://betternotificationsforwp.com/downloads/profile-builder/) - Adds compatibility and new notifications and shortcodes for Profile Builder Free, Hobbyist, and Pro plugins to Better Notifications for WP.
48
-
49
- ...and more coming soon!
50
-
51
- = Notifications =
52
- The notifications that are currently available to use are:
53
-
54
- **Admin**
55
-
56
- * New User Registration - For Admin
57
- * User Lost Password - For Admin
58
- * Password Changed - For Admin
59
- * User Email Changed - For Admin
60
- * User Role Changed - For Admin
61
- * User Logged In - For Admin
62
- * WordPress Core Automatic Background Updates
63
- * Privacy Confirm Action: Export Data Request – For Admin
64
- * Privacy – Confirm Action: Erase Data Request – For Admin
65
-
66
- **Transactional**
67
-
68
- * New User Registration - For User
69
- * New User - Post-registration Email
70
- * User Lost Password - For User
71
- * Password Changed - For User
72
- * User Email Changed Confirmation - For User
73
- * User Email Changed - For User
74
- * User Role Changed - For User
75
- * User Logged In - For User
76
- * Comment Reply
77
- * Privacy – Confirm Action: Export Data Request – For User
78
- * Privacy – Confirm Action: Erase Data Request – For User
79
- * Privacy – Data Export – For User
80
- * Privacy – Data Erased – For User
81
- * Profile Builder Approval Request for Admin ([Profile Builder Add-on](https://betternotificationsforwp.com/downloads/profile-builder/))
82
- * Profile Builder – Email Confirmation ([Profile Builder Add-on](https://betternotificationsforwp.com/downloads/profile-builder/))
83
- * Profile Builder – Account Approved ([Profile Builder Add-on](https://betternotificationsforwp.com/downloads/profile-builder/))
84
- * Profile Builder – Account Unapproved ([Profile Builder Add-on](https://betternotificationsforwp.com/downloads/profile-builder/))
85
- * User Login Reminder ([Reminders Add-on](https://betternotificationsforwp.com/downloads/custom-fields/))
86
-
87
- **Posts / Custom Post Types**
88
-
89
- * New Post Published
90
- * Post Updated
91
- * Post Pending Review
92
- * New Private Post
93
- * Post Scheduled
94
- * Published Post Moved to Trash
95
- * New Comment
96
- * New Comment Awaiting Moderation
97
- * Post - Comment Approved
98
- * Post - Custom Field Updated ([Custom Fields Add-on](https://betternotificationsforwp.com/downloads/custom-fields/))
99
- * Post - Update Reminder ([Reminders Add-on](https://betternotificationsforwp.com/downloads/update-reminder/))
100
- * New Trackback
101
- * New Pingback
102
-
103
- **Pages**
104
-
105
- * New Page Published
106
- * Page Updated
107
- * Page Pending Review
108
- * New Private Page
109
- * Page Scheduled
110
- * Page - New Comment
111
- * Page - New Comment Awaiting Moderation
112
- * Page - Comment Approved
113
- * Page - Comment Reply
114
- * Page - Custom Field Updated ([Custom Fields Add-on](https://betternotificationsforwp.com/downloads/custom-fields/))
115
- * Page - Update Reminder ([Reminders Add-on](https://betternotificationsforwp.com/downloads/update-reminder/))
116
-
117
- **Media**
118
-
119
- * New Media Published
120
- * Media Updated
121
- * Media - New Comment
122
- * Media - New Comment Awaiting Moderation
123
- * Media - Comment Approved
124
- * Media - Comment Reply
125
-
126
- **Posts**
127
-
128
- * New Category
129
- * New Tag
130
-
131
- **Custom Post Types**
132
-
133
- * New Term
134
-
135
- **Multisite ([Multisite Add-on](https://betternotificationsforwp.com/downloads/multisite/))**
136
-
137
- * New Site Activated or Created - For Network Admin
138
- * New User Created - For Network Admin
139
- * Network Admin Email Change Attempted - For New Network Admin
140
- * Network Admin Email Changed - For Old Network Admin
141
- * New Site Activated or Created - For Site Admin
142
- * Site Deleted - For Site Admin
143
- * Site Admin Email Change Attempted - For New Site Admin
144
- * Site Admin Email Changed - For Old Site Admin
145
- * New Site Activated - For User
146
- * New User Created - For User
147
- * New User Invited to Site - For User
148
-
149
- If you'd like to see a notification in the list above, please drop me a line in the forum and I'll see what I can do to add it.
150
-
151
- > Like this plugin? Please leave it [a great review](https://wordpress.org/support/plugin/bnfw/reviews/?rate=5#new-post)! Don't think the plugin is worthy of 5 stars? Having problems? Let me know in the [forum](https://wordpress.org/support/plugin/bnfw/) and I'll do my best to help.
152
-
153
- > DISCLAIMER
154
- > This is an incredibly useful and highly rated plugin however, it's possible that overuse or abuse of this plugin could upset your users by sending them too many notifications. By downloading / installing / using this plugin, you take full responsibility of the management / quantity / types of notifications that are sent out from it including abiding by any SPAM laws in your country / operating areas, dealing with / responding to subscription / unsubscription requests, complaints, and so on. I accept no liability or responsibility for SPAM or abuse of this plugin from the user(s) of or anyone that may receive notifications as a result of the use of this plugin. I'm trusting you, please don't abuse your users.
155
-
156
-
157
-
158
- == Installation ==
159
-
160
- 1. Upload the 'bnfw' plugin folder to the '/wp-content/plugins/' directory or install it via your WordPress Admin.
161
- 2. Activate the plugin through the 'Plugins' menu in WordPress.
162
- 3. Use the settings in the new 'Notifications' Menu item in the sidebar to configure the plugin.
163
- 4. (Optional) Install a plugin to use SMTP instead of `wp_mail()`. I recommend [Post SMTP Mailer/Email Log](https://wordpress.org/plugins/post-smtp/).
164
- 5. Test by creating a notification with some [shortcodes](https://betternotificationsforwp.com/shortcodes/ "Shortcodes for use in Better Notifications for WP").
165
-
166
-
167
-
168
- == Frequently Asked Questions ==
169
-
170
- > Full Documentation for BNFW can be found [here](https://betternotificationsforwp.com/documentation/ "Documentation for Better Notifications for WP").
171
-
172
- = Is this plugin compatible with the new Block Editor (Gutenberg) in WordPress 5? =
173
-
174
- Yes and no. Most notifications work but full support can't be guaranteed for all notifications at the moment. Full support is on the roadmap but for the time being, I'd recommend using the [Classic Editor plugin](https://wordpress.org/plugins/classic-editor/) with BNFW.
175
-
176
- = What are shortcodes? Where can I use them in this plugin? =
177
-
178
- Shortcodes are text in square brackets that output content of some kind. For example, if you want to add the content of a post to a notification for 'New Post Published', you can use the `[post_content]` shortcode to display this in the email that is sent out.
179
-
180
- Shortcodes can be used in the 'Subject' and 'Message Body' of your notifications, except for a select few (due to a restriction in WordPress).
181
-
182
- > A handy list of shortcodes you can use is available [here](https://betternotificationsforwp.com/shortcodes/ "Shortcodes for use in Better Notifications for WP").
183
-
184
- = What are some scenarios this plugin could be used for? =
185
-
186
- * Outreach: A blog/news site with hundreds of subscribers and want to use it to alert them of new blog posts.
187
- * Communication: A small, internal WordPress site and use it to alert staff of new posts or comments.
188
- * Monitor: A website for an awesome new product or service and use it for notifications of pingbacks and trackbacks.
189
- * Security: To receive alerts of password reset requests and their corresponding user.
190
-
191
- The possibilities are endless!
192
-
193
- = Does this plugin work with anti-spam plugins, such as Akismet? =
194
-
195
- Yes! There is an option for suppressing comments marked as SPAM in the plugin settings.
196
-
197
- = Does this plugin and the add-ons work with Multisite? =
198
-
199
- Yes! Full support for WordPress Multisite was added in 1.6.13, alongside the release of the [Multisite Add-on](https://betternotificationsforwp.com/downloads/multisite/).
200
-
201
- = Notifications aren't coming through! =
202
-
203
- First of all, follow [this article](https://betternotificationsforwp.com/how-can-i-receive-the-best-support/) about how to find out what might be causing the problem. Additionally, please take a look at [this help document](https://betternotificationsforwp.com/documentation/getting-started/how-to-improve-email-delivery/) to see how you might improve email delivery when using Better Notifications for WP.
204
-
205
- Many hosts place a limit on the number of emails that can be sent out within an hour so this may also cause some delay in emails arriving. [This article](https://support.mailpoet.com/knowledgebase/lists-of-hosts-and-their-sending-limits/) has a fairly extensive list of hosts and their corresponding email rate limits that's worth checking out. Alternatively, please check with your host directly to find out what your limit is.
206
-
207
- If you're still having problems, please drop me a line in the [Free Support Forums](https://wordpress.org/support/plugin/bnfw) and I'll do my best to help.
208
-
209
- = Some of my shortcodes aren't working! =
210
-
211
- It's possible you're inserting a shortcode into a notification that cannot use it. For example: the 'New Category' email notification cannot use any of the author or time shortcodes as WordPress only stores the category name, category slug and category description in the database by default. It's also worth checking the spelling and underscores in any shortcodes as well as if they are wrapped in square brackets `[]`.
212
-
213
- = Other emails from WordPress / other plugins are being messed up! =
214
-
215
- WordPress, by default, sends all emails in Plain Text. If you'd like to include code or use the WYSIWYG editor as part of Better Notifications for WP in your emails, you can change this to HTML using the global setting in Better Notification for WordPress. This can be found under the 'Notifications > Settings' screen. Changing this global email format setting will affect how all emails are sent out from WordPress however, so you may experience formatting issues with emails sent out from other plugins if you change the email format setting in this way. If you do, change this setting to Plain Text. You can also set the email format on a per-notification basis when setting-up a new Notification. The caveat is that WordPress will only either allow setting the email format globally (for all emails) or individually for anything that's non-transactional.
216
-
217
- = Custom Post Type 'X' isn't showing in the list of available custom post types =
218
-
219
- This is most likely because it's `public` setting is set to `false`. Try changing this and see if it shows up in the list. If the custom post type has been created by a plugin and is set to private (such as [TablePress](https://wordpress.org/plugins/tablepress/ "TablePress")), you'll need to get in touch with the plugin author to see if they'll consider changing it to public instead so that BNFW can send out notifications for it.
220
-
221
- = Can I translate this plugin? =
222
-
223
- Yes, of course! The plugin is completely translation-friendly and if you send me your .po file, I'll make sure to include it in the plugin and credit you in the changelog.
224
-
225
-
226
-
227
- == Screenshots ==
228
-
229
- 1. All Notifications
230
-
231
- 2. Add New / Edit Notification
232
-
233
-
234
-
235
- == Changelog ==
236
-
237
- = 1.8.3 - 1st June 2020 =
238
- * Fixed: If you activate BNFW and have not created any notifications, the default WordPress personal data export and erase request emails did not get sent.
239
- * Added: Compatibility with the 1.2 release of the [Custom Fields add-on](https://betternotificationsforwp.com/downloads/custom-fields/).
240
-
241
- = 1.8.2 - 14th May 2020 =
242
- * Fixed: Email addresses stored in custom fields weren't being used in Comment notifications when the Custom Fields add-on was installed.
243
- * Fixed: Two PHP notices showing above the subscriptions form when the Subscriptions add-on was installed.
244
- * Fixed: 'The User Lost Password - For User' notification wasn't outputting shortcodes in the message subject.
245
- * Fixed: 'The User Lost Password - For User' notification had an incorrect shortcode when inserting the default email content.
246
-
247
- = 1.8.1 - 21st April 2020 =
248
- * Added: Core changes to allow the [Global Override add-on](https://betternotificationsforwp.com/downloads/per-post-override/) to only send out notifications once.
249
- * Fixed: A range of issues relating to the [Global Override add-on](https://betternotificationsforwp.com/downloads/per-post-override/).
250
-
251
- = 1.8 - 8th April 2020 =
252
- * POTENTIAL BREAKING CHANGES - Please edit and re-save each comment notification you have set-up to ensure that the correct notification is selected and saved.
253
- * New: A huge overhaul of the comment notifications which now gives a great comment management workflow.
254
- * New: New Comment, New Comment Awaiting Moderation, Comment Approved, and Comment Reply notifications are now availble to all posts, pages, custom post types, and media attachments.
255
- * Improved: The 'Send this notification to the Author' checkbox has been overhauled to work better for the above notifications. See the relevant section in [this support document](https://betternotificationsforwp.com/documentation/notifications/adding-a-new-notification/) for more information.
256
-
257
- = 1.7.7 - 27th March 2020 =
258
- * New: Three new notifications! "New Media Published", "Media Updated", "Media Comment" - complete with new shortcodes for caption, alt text, dimensions, etc.
259
- * New: "User Logged In - For Admin" notification - sends a notification to the admin when users log in.
260
- * New: "User Logged In - For User" notification - sends a notification to the user when they log in.
261
- * New: "Published to Trash" notification - sends a notification when a published post is moved to the trash.
262
- * Improved: Support for plugins that allow users to be assigned to multiple user roles.
263
-
264
- = 1.7.6 - 30th January 2020 =
265
- * New Notification: New Comment Approved. This is sent after the comment has been approved.
266
- * New: You can now output the description for the first available category in any new Post/Page/Custom Post Type notification, as well as to New Comment, Comment Awaiting Moderation, and Comment Reply notifications using the shortcode `[post_category_description]`. You can also use the `[post_category_slug]` notification to output the first available category slug.
267
- * Added: Merged two pull requests that came in via the GitHub clone of this plugin relating to filters - ([#1](https://github.com/jackmcconnell/bnfw/pull/4/commits/501d7cdcb9855ad5aa08e4510f752f9ff319567f) and [#2](https://github.com/jackmcconnell/bnfw/pull/5)).
268
- * Added: `$update` as 3rd parameter to `bnfw_trigger_insert_post` filter.
269
- * Added: Additional translatable strings.
270
- * Improved: 'Post Pending Review' notifications are now only sent for the first update to a post that is pending review. Subsequent updates will not trigger another notification.
271
- * Fixed: Advanced Custom Fields (ACF) was triggering incorrect notifications when post/page/custom post types were submitted via a front-end form.
272
- * Fixed: The `[post_excerpt]` shortcode now conforms to the `excerpt_length` filter.
273
- * Fixed: Post Pending Review notifications were being sent in duplicate in certain situations.
274
- * Fixed: Added an additional check to ensure a Multisite doesn't crash when BNFW is enabled on a site with no Administrator users.
275
- * Fixed: Multisite notifications were showing the HTMl/Text options for notifications that could only support text.
276
-
277
- = 1.7.5 - 23rd September 2019 =
278
- * Added: Support for the new [Digest add-on](https://betternotificationsforwp.com/downloads/digest/)!
279
- * Added: Support for some big changes coming to the [Custom Fields add-on](https://betternotificationsforwp.com/downloads/custom-fields/).
280
- * Added: New Spanish translation.
281
- * Fixed: An issue relating to shortcodes in the [Multisite add-on](https://betternotificationsforwp.com/downloads/multisite/).
282
- * Fixed: Any 'Privacy' notifications are now hiding options that can't be overridden.
283
- * Fixed: Disabling automatic paragraphs on the 'User Lost Password - For User' notification wasn't working.
284
-
285
- = 1.7.4 - 19th August 2019 =
286
- * New: You can now filter the mail headers in BNFW using `bnfw_mail_headers`. More details [here](https://betternotificationsforwp.com/documentation/actions-and-filters/).
287
- * Added: Better support for the new Block Editor (Gutenberg) and all post/page/custom post type notifications. More and better support coming soon.
288
- * Added: Support for the upcoming [Digest add-on](https://betternotificationsforwp.com/downloads/digest/).
289
- * Fixed: The 'New User Registration - For Admin' notification was sending out the default WordPress notification as well as the BNFW notification in some cases.
290
- * Fixed: The 'New Comment - Awaiting Moderation' notification was missing from the [Global Override add-on](https://betternotificationsforwp.com/downloads/per-post-override/).
291
- * Fixed: A fatal error which occasionally occurred when a user changes their password on the front-end.
292
-
293
- = 1.7.3 - 10th April 2019 =
294
- * New: Notification - 'User Email Changed - For Admin'. This is sent to an admin after a user has successfully changed and confirmed a new email address.
295
- * New: Notification - 'User Email Changed Confirmation - For User'. This is sent to a user in order for them to confirm a change to their email address.
296
- * Added: You can now Enable or Disable a notification by hovering over it on the 'All Notifications' screen as well as enabling or disabling notifications in bulk from the Bulk Actions dropdown menu.
297
- * Fixed: The 'User Email Changed - For User' and 'User Password Changed' notifications were no longer being disabled when attempting to override it since WordPress 5.0.
298
- * Fixed: An issue where the new Block Editor (Gutenberg) caused double notifications upon publishing a post. Better support for Gutenberg will be coming this year. For now, it is recommended to use the [Classic Editor](https://wordpress.org/plugins/classic-editor/) plugin.
299
- * Fixed: The 'New User Registration - For Admin' and 'New User Registration - For User' notifications should work better now after the changes that were made in 1.7.
300
- * Fixed: The 'Send this Notification to the Author' checkbox was missing from the 'New Comment' notification.
301
- * Fixed: The `[comment_moderation_link]` shortcode was outputting blank when used on the 'Post New Comment Awaiting Moderation' notification and sent to non-Administrator user roles.
302
- * Fixed: The `[edit_post]` shortcode was escaping ampersands in the URL.
303
-
304
- = 1.7.2 - 21st November 2018 =
305
- * Fixed: WYSIWYG editor and meta box compatibility for Gutenberg. After the public release of WordPress 5.0 BNFW will continue to use the Classic Editor, as opposed to the new block editor.
306
- * Fixed: New Comment Awaiting Moderation notifications weren't being sent to the Post Author, where selected.
307
-
308
- = 1.7.1 - 5th November 2018 =
309
- * New: Full support for the new [Subscriptions (GDPR)](https://betternotificationsforwp.com/downloads/subscriptions-gdpr/) add-on.
310
- * Fixed: Comments marked as SPAM were triggering the 'New Comment Awaiting Moderation' notification.
311
- * Fixed: An issue relating to the 'New Comment Awaiting Moderation' notification not saving when used in conjunction with the Send To Any Email and Custom Fields add-ons.
312
- * Fixed: A couple of minor javascript errors relating to BNFW add-ons.
313
-
314
- = 1.7 - 5th September 2018 =
315
- * A huge update packed full of new features and bug fixes, especially for those that like privacy and comment notifications!
316
- * New: Six GDPR / Privacy Notifications. These allow you to override all the new notifications that WordPress 4.9.6 introduced relating to exporting and erasing user data. These are: Privacy – Confirm Action: Export Data Request – For User, Privacy – Confirm Action: Erase Data Request – For User, Privacy – Data Export – For User, Privacy – Data Erased – For User, Privacy – Confirm Action: Export Data Request – For Admin, Privacy – Confirm Action: Erase Data Request – For Admin.
317
- * New: The 'New Comment / Awaiting Moderation' notification has now been split into two so you can have a notification for just New Comments, or just Comments Awaiting Moderation, or both! Can be used on Posts, Pages, and Custom Post Types.
318
- * New: Shortcode - `[user_role]`. This outputs the user's role (or roles if assigned to more than one).
319
- * New: Shortcode - `[first_image]`. Outputs the URL of the first image in a post/page/custom post.
320
- * New: Shortcode - `[post_type_archive]`. Outputs the link for the post type / custom post type archive page.
321
- * New: Shortcode - `[post_category_slug]`. Outputs the category slug of a post or the first category slug if the post is assigned to multiple categories.
322
- * New: Shortcode - `[comment_moderation_link]`. This outputs the link to the WP Admin where you can moderate a new comment.
323
- * New: Shortcode - `[comment_parent_content]`. This outputs the content of the parent comment when used in a Comment Reply notification.
324
- * New: Three Comment Moderation Shortcodes - `[comment_moderation_approve]`, `[comment_moderation_spam]`, `[comment_moderation_delete]`. All for new comments. All should be self-explanatory.
325
- * New: A new column is available in the 'All Notifications' screen that shows which users are excluded from a notification.
326
- * Added: Dutch translation (props Piet).
327
- * Changed: The 'New User Registration - For Admin' notification can now override/be overridden by notifications that use the `wp_new_user_notification_email_admin` filter, introduced in WordPress 4.9.
328
- * Updated: Some of the default content that can be quickly added to a default notification was out-of-date.
329
- * Changed: Freemius has now been removed in favour for the previous iteration of user tracking. This is now an opt-in checkbox on the Notifications > Settings page. Please consider checking this box to help make BNFW even better.
330
- * Fixed: The 'Send this notification to the Author' checkbox still required a user or role to be entered into the 'Send To' box as well.
331
- * Fixed: The `[edit_post]` shortcode wasn't outputting anything when a non-Editor role could post on the front-end.
332
- * Fixed: Email addresses beginning with numbers weren't being saved when used in conjunction with the Send to Any Email add-on.
333
- * Fixed: The SVG icon on WordPress.org wasn't exported correctly.
334
-
335
- = 1.6.14 - 25th May 2018 =
336
- * New: As part of my plans for implementing GDPR within BNFW, you can now exclude users and/or roles from your notifications in the new 'Except For' box.
337
- * New: You can now include the post/page author in addition to the list of users and user roles in your notifications (not either/or).
338
- * New: You can now enable the output of shortcodes again when using the `[post_content]` shortcode in your notifications via a new checkbox in the Settings screen.
339
- * New: A list of available actions and filters in BNFW is now available in the [website documentation](https://betternotificationsforwp.com/documentation/actions-and-filters/).
340
- * Updated: The user tracking SDK I use (Freemius) has been updated to allow Multisite network admins to opt-in an entire multisite or delegate opt-in to site-level admins.
341
- * Fixed: Media inserted via the WYSIWYG editor wasn't showing. This should now be fixed.
342
- * Fixed: An issue where the `[post_term taxonomy="X"]` shortcode could only be used once in a notification.
343
- * Fixed: All date shortcodes are now translatable.
344
-
345
- = 1.6.13 - 5th April 2018 =
346
- * Added: Full support for the new [Multisite](https://betternotificationsforwp.com/downloads/multisite/) add-on.
347
- * Fixed: Multisite-only - the user_id was being used instead of the username in the login URL in the Lost Password - For User notification.
348
- * Fixed: Multisite-only - the New User Registration - For User notification wasn't working at all.
349
- * Fixed: Multisite-only - Permalink shortcodes weren't using the correct structure and instead were using the default `?p=123` structure when used on sub-sites.
350
- * Fixed: Some user shortcodes were only being outputted for the first user in a user role.
351
- * Fixed: An occasional issue where some notifications weren't appearing for custom post types.
352
-
353
- = 1.6.12 - 1st March 2018 =
354
- * New: Lots of new global user shortcodes! It's always been a bit difficult to explain how the user shortcodes changes between notifications - sometimes they're for the author of a post, sometimes they're the recipient user. Now, all user shortcodes are used solely for the author and a new set of global user shortcodes are available for the recipient. Full details are on the [Shortcodes](https://betternotificationsforwp.com/documentation/notifications/shortcodes/) documentation page.
355
- * Added: Preliminary changes for the upcoming [Multisite](https://betternotificationsforwp.com/downloads/multisite/) add-on.
356
-
357
- = 1.6.11 - 13th February 2018 =
358
- * Fixed: Update Reminder and Custom Field Updated notifications weren't showing for custom post types.
359
-
360
- = 1.6.10 - 31st January 2018 =
361
- * New: Faster customisation! You can now add the subject and message body from a default WordPress email to notifications. Just choose a default WordPress email and click the 'Insert Default Content' button next to the WYSIWYG editor when adding or editing a notification.
362
- * New: If you want to allow other user roles to create or edit notifications, you can now grant them the 'bnfw' capability using a role editor.
363
- * Added: A new notice will display at the top of all Notification screens explaining how you can improve email deliverability. You can dismiss this permanently at any time.
364
- * Added: Inline help tips are now available when creating or editing a notification. Handy if you want to remember how something works but don't want to sift through the documentation.
365
- * Added: Merged two pull request that came in via the GitHub clone of this plugin - ([#1](https://github.com/jackmcconnell/bnfw/pull/1) and [#2](https://github.com/jackmcconnell/bnfw/pull/2)).
366
- * Added: For faster support, there is now a Priority Support menu item in the BNFW Notifications menu. Priority Support is available to customers with an active subscription to an add-on.
367
- * Improved: All date related shortcodes now output in the date and time format set in Settings > General in the WordPress Admin.
368
- * Improved: The list of available notifications has been re-ordered to make more sense.
369
- * Improved: A warning will now show if the total user count in the Send To box is more than 200 users.
370
- * Improved: Usage tracking will now only load on single sites and not on sites that are part of a Multisite network.
371
- * Updated: Usage tracking SDK updated to the latest version.
372
- * Fixed: Warnings were showing when posting a new comment on the front-end.
373
-
374
- = 1.6.9 - 7th December 2017 =
375
- * Merry Christmas & Happy New Year!
376
- * New: Support for new [Profile Builder Add-on](https://betternotificationsforwp.com/downloads/profile-builder/).
377
- * Fixed: An issue where the YouTube video wasn't showing properly on the BNFW WP.org plugin page.
378
-
379
- = 1.6.8 - 23rd November 2017 =
380
- * New: All shortcodes that are correctly registered within WordPress will now be stripped from the `[post_excerpt]` and `[post_content]` shortcodes so as to not cause layout or styling issues within your notifications.
381
- * Added: A minimum PHP version of 5.6 is now required to run BNFW.
382
- * Fixed: Compatibility with the [Reminders](https://betternotificationsforwp.com/downloads/update-reminder/) and [Conditional Notifications](https://betternotificationsforwp.com/downloads/conditional-notifications/) add-ons.
383
- * Reminder: You may be asked to opt into plugin tracking when updating. Please consider doing so as it really helps with the development of the plugin. Full details on what is tracked is available on [this page](https://betternotificationsforwp.com/documentation/settings/what-information-will-be-tracked-by-opting-into-usage-tracking/).
384
-
385
- = 1.6.7 - 10th August 2017 =
386
- * New: Shortcode - `[current_time]` Will output the current time as per the settings in WordPress > Settings.
387
- * New: Shortcode - `[current_date]` Will output the current date as per the settings in WordPress > Settings.
388
- * New: Shortcode - `[admin_email]` Adds the email address of the main site admin as per the settings in WordPress > Settings.
389
- * Fixed: BNFW now respects the post status of posts submitted via ACF's front-end forms (acf_form).
390
- * Fixed: Privately Published posts that are updated now trigger the 'Post Updated' notification.
391
- * Changed: The opt-in for plugin tracking in BNFW has changed. You may be asked to opt-in / opt-out when updating the plugin.
392
-
393
- = 1.6.6 - 28th June 2017 =
394
- * Fixed: New Comments on Custom Post Types weren't always sending notifications.
395
- * Fixed: An issue where using the `bnfw_trigger_insert_post()` filter wasn't always working correctly.
396
- * Fixed: An issue where checking a notification was disabled wasn't always working correctly.
397
- * Added: Support for limiting 'New User Registration - For User' notifications to specific user roles in the recently updated [Conditional Notifications add-on](https://betternotificationsforwp.com/downloads/conditional-notifications/).
398
- * Added: Support for huge logic enhancements to the soon to be updated [Global Override add-on](https://betternotificationsforwp.com/downloads/per-post-override/).
399
- * Added: Support for the new 'User Login Reminder' notification in the soon to be updated [Reminders add-on](https://betternotificationsforwp.com/downloads/update-reminder/).
400
-
401
- = 1.6.5 - 18th May 2017 =
402
- * New: ACF Form compatibility has now been re-added! Props to @elliotcondon for the help.
403
- * Remember to subscribe to the [mailing list](http://voltronik.us2.list-manage2.com/subscribe?u=57c012217219b2d81dda0085f&id=28eebdab28) if you want to be notified of new add-ons for BNFW and receive 10% off your first add-on purchase.
404
-
405
- = 1.6.4 - 18th April 2017 =
406
- * New: You can now use `[global_user_username]` in any notification to output the recipient's username.
407
- * New: When a user is assigned to multiple roles which have been added to a notification, they will only receive the notification once and not once for each role that the notification is configured to send to.
408
- * Improved: Clearer labelling on new custom post type notifications.
409
- * Removed / Fixed: The addition of ACF Form compatibility in the last version was causing a range of issues, some minor, some serious. Until a more robust solution is found, this has been removed from the plugin whilst I try and get in touch with the author of ACF and work on a solution or collaboration.
410
- * Fixed: The 'Send To' select box was being overlayed by the dropdown that shows when clicking in the box.
411
- * Fixed: Searching for a user when a site has more than 200 users in the 'Send To' box now works as expected.
412
-
413
- = 1.6.3 - 13th March 2017 =
414
- * Added: Support for the new [Send to Any Email add-on](https://betternotificationsforwp.com/downloads/send-to-any-email/).
415
- * Added: Support for Advanced Custom Field (ACF) front-end forms. Finally!
416
- * Updated: French translation (props @matcho).
417
- * Improved: The 'Lost Password' notifications now begin with 'User Lost Password' to make them easier to understand.
418
- * Fixed: The 'Reply To' fields weren't saving correctly.
419
- * Fixed: Ensure post shortcodes are rendered before sending (props @cliffpaulick).
420
- * Fixed: A minor issue with the custom field selection box when using the [Custom Fields add-on](https://betternotificationsforwp.com/downloads/custom-fields/).
421
-
422
- = 1.6.2 - 17th February 2017 =
423
- * Fixed: The 'Shortcode Help' button wasn't working correctly for some of the new notifications.
424
-
425
- = 1.6.1 - 17th February 2017 =
426
- * New & Improved: The 'Password Changed - For User', 'Password Changed - For Admin', and 'User Email Changed - For User' notifications have now been fully implemented.
427
- * New: You can now use `[post_term taxonomy="TAXONOMY_NAME"]` to output the term(s) from the chosen taxonomy.
428
- * Improved: Any anti-SPAM plugin should now work with BNFW, not just Akismet.
429
- * Improved: Emails sent via the "Send me a Test Email" button now prepend the Subject line with "Test Email: " so that you can tell which is a test notification and which is a real notification when using an email log plugin.
430
- * Fixed: The Global User Shortcodes weren't outputting anything when used in the 'User Email Changed - For User' notification.
431
- Fixed: When a 'Lost Password – For User' notification had been set-up but disabled, it wasn't disabling the default WordPress notification.
432
- * Fixed: The 'WordPress Core Automatic Background Updates' notification wasn't working at all.
433
- * Fixed: The Global User Shortcodes were being output incorrectly in test emails.
434
- * Fixed: The `[featured_image]` shortcode was outputting the shortcode name as opposed to a blank when no featured image is set.
435
- * Fixed: A number of warnings and notices relating to the 'Lost Password' notifications when on WordPress's Lost Password screen.
436
- * Fixed: The 'Add-on Licenses' screen was displaying HTML characters where there shouldn't be any.
437
- * Fixed: An error was occurring when triggering notifications when used in conjunction with the latest version of the Custom Fields add-on.
438
- * Fixed: Some language translation strings were incorrect.
439
- * Updated: EDD_SL_Plugin_Updater is now at the latest version for add-ons.
440
-
441
- = 1.6 - 12th December 2016 =
442
- * Merry Christmas & Happy New Year!
443
- * New: Anonymous tracking of the features you use in BNFW is now an opt-in checkbox on the Notifications > Settings page. Please consider checking this box to help make BNFW even better. You'll also receive a 10% off coupon code when you sign-up to the [mailing list](http://voltronik.us2.list-manage2.com/subscribe?u=57c012217219b2d81dda0085f&id=28eebdab28) too.
444
- * New: Notifications for privately published posts / pages / custom post types.
445
- * New: Notification and accompanying shortcode for customising WordPress Core Automatic Background Updates (Success / Fail / Critical).
446
- * New: Notification for User Password Changed.
447
- * New: Notification for User Email Changed - For User.
448
- * New: Shortcodes for showing the old and new user role when used in conjunction with the User Role Changed notifications.
449
- * New: You can now add a 'Reply To' name and email address in the Additional Email Fields for all notifications that support it.
450
- * New: You can now prevent yourself from receiving notifications of comments or replies to comments on one of your posts by combining the two checkboxes 'Send this notification to the Author only' and 'Do not send this Notification to the User that triggered it'.
451
- * New: All transactional notifications can now be set to either HTML or Plain Text.
452
- * Improved: Better compatibility with [Theme My Login](https://en-gb.wordpress.org/plugins/theme-my-login/).
453
- * Improved: Re-worded a checkbox to be more understandable. It did say, "Disable this Notification for the User that triggered it", but now says, "Do not send this Notification to the User that triggered it".
454
- * Improved: Compatibility with Mashshare.
455
- * Fixed: Global User Shortcodes weren't being outputted correctly in the 'Lost Password - For User' notification.
456
- * Fixed: Child themes weren't being registered correctly in the filter when using the front-end forms filter.
457
- * Fixed: The number of options within notifications was being limited to the number of blog posts WordPress was set to show.
458
- * Fixed: The 'Shortcode Help' button wasn't linking to the BNFW website correctly for some BNFW add-ons.
459
-
460
- = 1.5.3 - 13th September 2016 =
461
- * Fixed: User Roles in the 'User Roles / Users' admin column were being displayed only in lowercase.
462
- * Fixed: The `[wp_capabilities]` shortcode wasn't outputting properly. It now displays the higher-level capabilities that the user has.
463
-
464
- = 1.5.2 - 6th September 2016 =
465
- * Fixed: Custom User Roles were showing 0 users in the 'To' field.
466
- * Added: Generic CSS classes to BNFW admin.
467
- * Updated: German Translation to show English in certain places where translation text breaks the WP Admin UI (props @helmi).
468
- * Full code review and submission to WordPress VIP!
469
-
470
- = 1.5.1 - 5th August 2016 =
471
- * Fixed: 'Text' mode in the WYSIWYG editor didn't show any buttons when the BNFW Per-post Override Add-on was activated.
472
-
473
- = 1.5 - 25th July 2016 =
474
- * New: Global Site Shortcodes! Include these in any notification to output the site title (`[global_site_title]`), site tagline (`[global_site_tagline]`), or site URL (`[global_site_url]`).
475
- * New: Global User Shortcodes! Include these in any notification to output the user's first name (`[global_user_firstname]`), user's last name (`[global_user_lastname]`), or user's email address (`[global_user_email]`).
476
- * New: The 'User Role Changed' notification has been split into two transactional notifications - one that can be sent to users and one that can be sent to admins.
477
- * New: Shortcode `[featured_image]`. Outputs the URL for the featured image (if one is available).
478
- * New: Shortcode `[user_avatar]`. Outputs the User's avatar when used in a capable notification.
479
- * New: Shortcode `[commenter_avatar]`. Outputs the comment author's avatar for comment-based notifications.
480
- * Improved: 'Comment Reply' notifications are now available to use for Pages and Custom Post Types.
481
- * Improved: When sending notifications to user roles in the 'To' field, it will now show how many users are in that role.
482
- * Improved: The 'Lost Password - For User', 'User Role Changed - For Admin', and 'User Role Changed - For User' notifications now have the option to 'Stop additional paragraph and line break HTML from being inserted into my notifications' via the checkbox below the WYSIWYG editor on the Add New / Edit Notification screen.
483
-
484
- = 1.4.1 - 3rd June 2016 =
485
- * Fixed: Multiple emails were being sent for a single notification for a small number of users. After lots of hunting and lots of testing, I'm hoping this should now be fixed.
486
- * Fixed: The 'User Role Changed' notification was broken after the update to WordPress 4.5.
487
- * Fixed: The 'Password Reset - For User' and 'New User - Post-registration Email' notifications were being sent in HTML but with all carriage returns / line breaks stripped out.
488
- * Fixed: User shortcodes for new comments on custom post types weren't being outputted properly.
489
- * Fixed: The 'Notifications' BNFW menu item in the Sidebar in the WordPress Admin was showing for non-admins.
490
- * Added: German Translation (props Michael Schröttle).
491
-
492
- = 1.4 - 8th April 2016 =
493
- * New: Shortcode `[post_slug]`. Output the post slug.
494
- * New: Shortcode `[edit_post]`. Outputs the link to edit the post / page / custom post.
495
- * New: Shortcode `[post_parent_permalink]`. Outputs a permalink to the post / page / custom post's parent item.
496
- * New: Shortcode `[author_link]`. Outputs a link to the post / page / custom post's author archive.
497
- * New: You can now add the collection of User Shortcodes to the 'Lost Password - For User' email.
498
- * New: Support for the 'O2' plugin, when used in conjunction with the 'P2' Theme via a filter. Please see the [documentation](https://betternotificationsforwp.com/documentation/) for details.
499
- * Improved: Users were getting confused with the 'Welcome Email', thinking it operated like that in the 'SB Welcome Email Editor' plugin. The name of this notification has been changed from 'New User - Welcome Email' to 'New User - Post-registration Email' to help differentiate its functionality in BNFW.
500
- * Improved: The screen where you add your license(s) after purchasing any BNFW add-on(s) is now called 'Add-on Licenses', instead of going to 'Settings' and adding them there.
501
- * Improved: Setting a notification to send to 'the author only' now shows a label in the 'User Roles / Users' column in the 'All Notifications' screen.
502
- * Improved: 'New Comment / Awaiting Moderation', 'New Trackback', and 'New Pingback' notifications now show the 'Send this notification to the Author only' checkbox.
503
- * Improved: If a notification is present but disabled, the default WordPress notification (if there is one), will not be sent.
504
- * Fixed: New Post Published notifications weren't being sent if you had the Per-post Override add-on installed.
505
-
506
- = 1.3.9.5 - 26th February 2016 =
507
- * Fixed: New Post Published notifications were triggering multiple times due to `auto_draft_to_publish`.
508
-
509
- = 1.3.9.4 - 15th February 2016 =
510
- * Filter improvements for the new [Per-post Override add-on](https://betternotificationsforwp.com/downloads/per-post-override/).
511
-
512
- = 1.3.9.3 - 12th February 2016 =
513
- * General bug fixes and updates relating to future add-ons and the new [Per-post Override add-on](https://betternotificationsforwp.com/downloads/per-post-override/) which allows you to override your notifications for each post / page / custom post.
514
- * Added: New Post Published notifications now trigger on `auto_draft_to_publish`. This may or may not effect you if you publish through a front-end form or from an app.
515
-
516
- = 1.3.9.2 - 29th January 2016 =
517
- * The [Add-on Store](https://betternotificationsforwp.com/downloads/) is now live! Looking for some extra, premium functionality in your notifications? You might find an add-on for it!
518
- * New: A filter is now available for adding compatibility to themes for creating posts using `wp_insert_post`. Please see the bottom of the [FAQ](https://wordpress.org/plugins/bnfw/faq/) for details.
519
- * Fixed: 'User Role Changed' notifications were being triggered for new users.
520
- * Fixed: The label for custom taxonomies was showing in the Notification select box even if you didn't have any.
521
- * Fixed: A warning was showing when no 'CC' or 'BCC' details were added but the 'Name' and 'From' details were specified.
522
- * Fixed: A warning was showing after a taxonomy was deleted but a notification existed for it.
523
- * Fixed: Replaced select2 v4 script for full version for better compatibility with other plugins.
524
- * Fixed: The javascript in the plugin is now translatable.
525
- * Added: French translation - props Mygale06.
526
-
527
- = 1.3.9.1 - 9th January 2016 =
528
- * Fixed: Missing shortcode link for new 'User Role Changed' notification.
529
- * Fixed: Duplicate 'User Role Changed' listing in the Notification select box.
530
-
531
- = 1.3.9 - 9th January 2016 =
532
- * Happy New Year!
533
- * New: Transactional notification for when a User Role Changed. This is sent to the user when their User Role is changed.
534
- * Fixed: Ensure that at least one User or User Role is selected before saving a notification.
535
- * Fixed: select2 v4 update and compatibility with Ultimate Member and ACF Pro.
536
-
537
- = 1.3.8 - 16th December 2015 =
538
- * Fixed: Notifications weren't being sent out at all. After lots of testing, I think this should now be resolved.
539
- * Fixed: An issue where quotes in the Subject field were causing part of/all the field content to be removed.
540
- * Improved: If you have more than 100 users on your site, the User Roles / Users select box will show the first 100 users only. You can search through the rest by typing the first character of a username in the select box and it will show you any matching users.
541
-
542
- = 1.3.7 - 11th December 2015 =
543
- * Fixed: An issue where EDD_SL_Plugin_Updater class was already declared by another plugin.
544
-
545
- = 1.3.6 - 11th December 2015 =
546
- * Merry Christmas to you all!
547
- * New: Password Reset notifications can now be in HTML or Plain Text.
548
- * Improved: The Users / User Role select box now utilises live search instead of showing all users in a long list if you have more than 100 users. This should be a huge performance improvement if your site has a lot of users.
549
- * Updated: select2.js library updated to v4.
550
- * Fixed: Compatibility with password reset notifications in WordPress 4.1.0 and below.
551
- * Fixed: An issue where the 'Tag' label was showing incorrectly in the 'All Notifications' screen.
552
- * I've added a short disclaimer to the [Description Tab](https://wordpress.org/plugins/bnfw/) regarding SPAM and overuse/abuse of this plugin which I recommend a quick read through.
553
-
554
- = 1.3.5 - 9th October 2015 =
555
- * Fixed: A large bug that was causing issues with Password URL shortcodes in the 'New User Registration - For User' and 'Password Reset - For User' notifications.
556
- * Fixed: An issue where the 'disabled wpautop' checkbox was appearing on transactional emails.
557
- * Fixed: Some labels in the 'All Notifications' screen weren't formatted correctly.
558
- * Fixed: Translations weren't referenced correctly. Auto-translation will be [done by WordPress.org automatically](https://make.wordpress.org/plugins/2015/09/01/plugin-translations-on-wordpress-org/) at some point in the future.
559
-
560
- = 1.3.4 - 2nd October 2015 =
561
- * New: Choose automatic or manual paragraph / line breaks in the WYSIWYG editor. This fixes an issue where they were inserted automatically when they weren't desired. The checkbox for this is below the WYSIWYG editor.
562
- * New: You can now add images to your notifications using the 'Add Media' button above the WYSIWYG editor.
563
- * New: Portuguese Brazil translation for v1.3.3 (props Glayton Caixeta).
564
- * New: BNFW now has it's own [website](https://betternotificationsforwp.com/)!
565
- * New: Buttons have been added linking to the Documentation and Shortcode Help sections of the website next to the WYSIWYG editor.
566
- * New: Support for premium add-ons, coming very soon! More info and sign-up for updates [here](https://wordpress.org/support/topic/add-ons-are-coming-sign-up-for-updates).
567
- * New: Added a video overview of BNFW showing it's features and functionality to the main plugin page and website.
568
- * Fixed: The 'New User Registration - For User' now works again after WordPress 4.3 broke it.
569
- * Fixed: HTML using quotes was being escaped in emails.
570
- * Fixed: The 'Settings' sidebar menu item wasn't highlighting properly.
571
- * I also added all previous release dates to this changelog.
572
- * If you liked this plugin, please feel free to leave an honest [review](https://wordpress.org/support/view/plugin-reviews/bnfw?filter=5#postform). If you didn't or have a problem, please send me a message in the [Support Forum](https://wordpress.org/support/plugin/bnfw).
573
-
574
- = 1.3.3 - 22nd August 2015 =
575
- * New: You can now send a notification to the Post Author only, where a notification supports it.
576
- * New: There is now an option in the Settings screen to globally set WordPress to send emails in either HTML or Plain Text. Please read the [FAQ](https://wordpress.org/plugins/bnfw/faq/) for more information about this as there is a small caveat.
577
- * New: Support for WordPress 4.3.
578
- * New: Pending posts that are changed to Published now trigger the 'New Post / Page Notification'.
579
- * Improved: Scheduled notifications now trigger two notifications, one for when they're saved as Scheduled ('Post Scheduled' / 'Page Scheduled') and one for when they're actually published ('New Post Published / New Page Published').
580
- * Improved: Swapped the green tick for a dashicons tick for a slightly more speedier, native-feeling plugin.
581
- * Improved: Reduced the flash of hidden elements when loading the New / Edit Notification screen.
582
- * Fixed: WordPress 4.3 doesn't allow passwords to be automatically created for new users and will instead, send them to a password generator page. The `[password]` shortcode has been replaced with `[password_url]`. `[password]` should still work though so it won't break your existing notifications.
583
- * Fixed: Some output was being showed when WP_DEBUG was enabled.
584
- * Fixed: Removed the 'slug' field when enabled from Screen Options.
585
-
586
- = 1.3.2 - 20th July 2015 =
587
- * Fixed: Replaced a deprecated function which might cause a warning to show when `WP_DEBUG` was enabled.
588
-
589
- = 1.3.1 - 18th July 2015 =
590
- * Fixed: The P2 theme wasn't triggering new post or comment notifications.
591
- * Fixed: Sometimes the shortcode help link at the bottom of the notification editor wouldn't link to the help page properly.
592
-
593
- = 1.3 - 2nd July 2015 =
594
- * New: Option to disable notifications going to the user that triggered them.
595
- * New: Comment Reply Notification. This is a transactional notification that will only trigger when replying to the original comment (i.e. Up to 2-levels deep).
596
- * New: New Shortcode: Update Author. Use `[post_update_author]` in any Post or Page notifications to see which user updated the post.
597
- * New: Choose between sending the notification as plain text or HTML.
598
- * New: A basic implementation of shortcode help has been added into the plugin. Click the link below the message body editor to see which shortcodes can be used for the currently selected notification.
599
- * Improved: The 'New User Registration' (For Admin & User) and 'Welcome Email' notifications now allow you to use all of the 'User' shortcodes.
600
- * Fixed: Formatting in emails sent from other plugins were being effected by BNFW.
601
- * Fixed: Notifications for Categories, Terms and Tags weren't getting triggered.
602
- * Fixed: Notifications weren't getting triggered when using the P2 theme (please see the [FAQ](https://wordpress.org/plugins/bnfw/faq/) for more information about this).
603
- * Fixed: Additional Email fields were being shown for transactional notifications that couldn't use them.
604
-
605
- = 1.2 - 19th May 2015 =
606
- * New: WYSIWYG Editor for notifications!
607
- * New: From Name, From Email, CC and BCC options are now available to use for each notification!
608
- * New: 'Send Me a Test Email' button. Save your notification first and then send yourself a test email! This will only go to you and not to any of the other users selected in the notification. Shortcodes will not be expanded but will be shown in place.
609
- * Improved: The User Role / Users drop down box has been unified for simplicity.
610
- * Fixed: Lost Password (For User) notifications were being sent in plain text.
611
- * Fixed: Not all custom post types were showing when setting up a new notification.
612
- * Fixed: Notifications for New Terms not generating notification emails.
613
- * Fixed: Custom Taxonomies missing from columns in the All Notifications screen.
614
- * Fixed: Added a space after lists of tags, categories, and terms.
615
- * Thank you again for all of your support, feedback, and awesome reviews. You people make WordPress great!
616
-
617
- = 1.1.5.3 - 21st April 2015 =
618
- * Compatibility with WordPress 4.2.
619
-
620
- = 1.1.5.2 - 15th April 2015 =
621
- * Fixed: Custom Post Type Pending Posts not being sent.
622
- * Fixed: Post excerpt not outputting anything.
623
- * Removed: `[closedpostboxes_page], [rich_editing], and [admin_color]` as was a bit defunct and causing issues.
624
- * Changed: `[post_author]` now outputs the display name instead of the author ID.
625
- * Improved: Clarity of custom post type and taxonomy labels.
626
-
627
- = 1.1.5.1 - 13th April 2015 =
628
- * Fix for Custom Post Type notifications not populating shortcodes.
629
- * Fix for Custom Taxonomy terms not sending out notification emails.
630
-
631
- = 1.1.5 - 10th April 2015 =
632
- * New Shortcode: [permalink].
633
- * New Notifications: 'Scheduled Posts' and 'Scheduled Pages'.
634
- * New Shortcodes for the above Notifications: [post_scheduled_date] and [post_scheduled_date_gmt].
635
- * New Notification: 'New Page Published'.
636
- * New Notification: 'Page 'Updated'.
637
- * New Notification: 'Page Pending Review'.
638
- * New Notification: 'New Page - Comment'.
639
- * Fixed: A few bugs reported via the forums and some others that i've found - thanks everyone!
640
-
641
- = 1.1 - 16th March 2015 =
642
- * Lots of cool new stuff and more to come soon!
643
- * Transactional notifications (notifications intended only for the end user) have been added as a new group in the notifications select box.
644
- * New Notification: Post Pending Review (for all post types).
645
- * New Notification: New User Registration (Transactional).
646
- * New Notification: Password Reset (Transactional).
647
- * New Notification: New User Welcome Email (Transactional).
648
- * Added an option to enable or disable each notification.
649
- * Better support for custom taxonomies and terms.
650
- * Fixed: A few PHP warnings were showing when using `WP_DEBUG`.
651
- * Fixed: HTML tags being stripped from `[post_content]` and `[comment_content]`.
652
- * Removed: Some WordPress Multisite shortcodes that didn't work properly. Proper support for Multisite will come later.
653
- * If you liked this plugin, please leave a review. If you didn't or have a problem, please send me a message in the Support Forum.
654
-
655
- = 1.0.2 - 17th January 2015 =
656
- * Bug fix for `[ID]` shortcode not outputting anything.
657
- * Bug fix for `[post_category]` showing as empty.
658
- * Added tags shortcode for use in certain notifications using `[post_tag]`.
659
-
660
- = 1.0.1 - 21th December 2014 =
661
- * Bug fix for notifications not being sent to custom user roles or individual users of custom roles.
662
- * Added a 'Notification Type' column to the notifications screen.
663
- * Renamed 'User Roles' column in notifications screen to 'User Roles/Users'.
664
-
665
- = 1.0 - 17th December 2014 =
666
- * First major release - we're no longer in beta!
667
- * Total overhaul. The plugin has been completely re-written.
668
- * Auto-importer: Your old notifications will be imported when updating the plugin.
669
- * New 'Generator' for easily creating and editing your notifications.
670
- * More options and notification types as per feedback via the forums - thanks everyone!
671
- * Granular control over choosing either user roles or individual users you'd like to send a notification to.
672
- * Fully translatable.
673
- * Loads of bugfixes and improvements.
674
-
675
- = 0.2.1 beta - 4th June 2013 =
676
- * Minor Bugfixes
677
-
678
- = 0.2 beta - 8th April 2013 =
679
- * Added an option to suppress SPAM comment notifications.
680
-
681
- = 0.1 beta - 25th March 2013 =
682
- * Initial version of the plugin.
683
- * Settings page for configuring notification types for roles.
684
- * Email Templates page for customising emails using HTML and shortcodes.
685
-
686
-
687
-
688
- == Upgrade Notice ==
689
-
690
- = Migrating from 0.2.1 to 1.0 =
691
-
692
- Version 1 features an auto-importer which should migrate all of your notifications from any previous versions of the plugin to 1.0.
693
- Please ensure that you check, double check and test your notifications before and after upgrading.
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Customize WordPress Emails and Alerts - Better Notifications for WP ===
2
+ Contributors: voltronik
3
+ Donate link: https://betternotificationsforwp.com/donate/
4
+ Tags: notification, email, alert, message, notify, send, HTML, customize, bulk, trigger, CC, BCC
5
+ Requires at least: 4.8
6
+ Tested up to: 5.5.1
7
+ Requires PHP: 5.6
8
+ Stable tag: 1.8.4
9
+ License: GPLv2 or later
10
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
+
12
+ Supercharge your WordPress email notifications using a WYSIWYG editor and shortcodes. Default and new notifications available. Increase power with Add-ons.
13
+
14
+ == Description ==
15
+
16
+ Better Notifications for WP is a simple but powerful plugin for beginners to advanced users that allows you to customise the email notifications that WordPress sends using the WYSIWYG editor and shortcodes. All of the default WordPress email notifications are available to customise as well as lots of new ones. You can choose to send notifications to individual users, multiple users, all users in a user role, multiple roles - you name it! You can also power-up your notifications with [Premium Add-ons](https://betternotificationsforwp.com/downloads/). Emails are sent out via your WordPress website (using `wp_mail`) but can be sent via SMTP using an appropriate 3rd party plugin should you wish.
17
+
18
+ Here's a quick walkthrough of the plugin in action:
19
+ [youtube https://www.youtube.com/watch?v=MxPUyRZPJ1Q]
20
+
21
+ = An Example: =
22
+ You want all the users in the Editor role to be notified via email when a new post is published and you'd like to customise it to include your logo along with the author's name and date / time it was published - with this plugin, that's easy.
23
+
24
+ > A handy list of shortcodes you can use is available [here](https://betternotificationsforwp.com/shortcodes/ "Shortcodes for use in Better Notifications for WP").
25
+
26
+ = Premium Add-ons =
27
+ Power-up your notifications using add-ons:
28
+
29
+ [Notification Add-on Bundles](https://betternotificationsforwp.com/add-on-bundles/) - Everything you need for your WordPress notifications. Save big when you buy an add-on bundle. Instant access.
30
+
31
+ [Subscriptions (GDPR)](https://betternotificationsforwp.com/downloads/subscriptions-gdpr/) - Allow users to manage their subscriptions for BNFW notifications.
32
+ If you want to let users create their own email notifications, check out my other plugin: [Content Notify](https://contentnotify.com).
33
+
34
+ [Conditional Notifications](https://betternotificationsforwp.com/downloads/conditional-notifications/) - Limit certain notifications depending on which categories, tags, post formats, or terms you choose.
35
+
36
+ [Custom Fields](https://betternotificationsforwp.com/downloads/custom-fields/) - Provides a number of new shortcodes allowing you to include data from custom fields and custom user fields created using [ACF](https://wordpress.org/plugins/advanced-custom-fields/).
37
+
38
+ [Send to Any Email](https://betternotificationsforwp.com/downloads/send-to-any-email/) - Send notifications to non-WordPress Users.
39
+
40
+ [Digest](https://betternotificationsforwp.com/downloads/digest/) - Group multiple notifications into a single digest notification.
41
+
42
+ [Global Override](https://betternotificationsforwp.com/downloads/per-post-override/) - Override some of the settings of notifications directly when editing a post, page, or custom post type.
43
+
44
+ [Reminders](https://betternotificationsforwp.com/downloads/update-reminder/) - Send a reminder to your users and/or user roles when a post, page, or custom post type hasn't been updated after a set amount of time. Also send a notification when a user hasn't logged in for a set amount of time.
45
+
46
+ [Multisite](https://betternotificationsforwp.com/downloads/multisite/) - Adds new notifications and shortcodes for WordPress Multisite to Better Notifications for WP.
47
+
48
+ [Profile Builder](https://betternotificationsforwp.com/downloads/profile-builder/) - Adds compatibility and new notifications and shortcodes for Profile Builder Free, Hobbyist, and Pro plugins to Better Notifications for WP.
49
+
50
+ ...and more coming soon!
51
+
52
+ = Notifications =
53
+ The notifications that are currently available to use are:
54
+
55
+ **Admin**
56
+
57
+ * New User Registration - For Admin
58
+ * User Lost Password - For Admin
59
+ * Password Changed - For Admin
60
+ * User Email Changed - For Admin
61
+ * User Role Changed - For Admin
62
+ * User Logged In - For Admin
63
+ * WordPress Core Automatic Background Updates
64
+ * Privacy – Confirm Action: Export Data Request – For Admin
65
+ * Privacy – Confirm Action: Erase Data Request – For Admin
66
+
67
+ **Transactional**
68
+
69
+ * New User Registration - For User
70
+ * New User - Post-registration Email
71
+ * User Lost Password - For User
72
+ * Password Changed - For User
73
+ * User Email Changed Confirmation - For User
74
+ * User Email Changed - For User
75
+ * User Role Changed - For User
76
+ * User Logged In - For User
77
+ * Comment Reply
78
+ * Privacy – Confirm Action: Export Data Request – For User
79
+ * Privacy – Confirm Action: Erase Data Request – For User
80
+ * Privacy – Data Export – For User
81
+ * PrivacyData Erased For User
82
+ * Profile Builder – Approval Request for Admin ([Profile Builder Add-on](https://betternotificationsforwp.com/downloads/profile-builder/))
83
+ * Profile Builder – Email Confirmation ([Profile Builder Add-on](https://betternotificationsforwp.com/downloads/profile-builder/))
84
+ * Profile Builder – Account Approved ([Profile Builder Add-on](https://betternotificationsforwp.com/downloads/profile-builder/))
85
+ * Profile Builder Account Unapproved ([Profile Builder Add-on](https://betternotificationsforwp.com/downloads/profile-builder/))
86
+ * User Login Reminder ([Reminders Add-on](https://betternotificationsforwp.com/downloads/custom-fields/))
87
+
88
+ **Posts / Custom Post Types**
89
+
90
+ * New Post Published
91
+ * Post Updated
92
+ * Post Pending Review
93
+ * New Private Post
94
+ * Post Scheduled
95
+ * Published Post Moved to Trash
96
+ * New Comment
97
+ * New Comment Awaiting Moderation
98
+ * Post - Comment Approved
99
+ * Post - Custom Field Updated ([Custom Fields Add-on](https://betternotificationsforwp.com/downloads/custom-fields/))
100
+ * Post - Update Reminder ([Reminders Add-on](https://betternotificationsforwp.com/downloads/update-reminder/))
101
+ * New Trackback
102
+ * New Pingback
103
+
104
+ **Pages**
105
+
106
+ * New Page Published
107
+ * Page Updated
108
+ * Page Pending Review
109
+ * New Private Page
110
+ * Page Scheduled
111
+ * Page - New Comment
112
+ * Page - New Comment Awaiting Moderation
113
+ * Page - Comment Approved
114
+ * Page - Comment Reply
115
+ * Page - Custom Field Updated ([Custom Fields Add-on](https://betternotificationsforwp.com/downloads/custom-fields/))
116
+ * Page - Update Reminder ([Reminders Add-on](https://betternotificationsforwp.com/downloads/update-reminder/))
117
+
118
+ **Media**
119
+
120
+ * New Media Published
121
+ * Media Updated
122
+ * Media - New Comment
123
+ * Media - New Comment Awaiting Moderation
124
+ * Media - Comment Approved
125
+ * Media - Comment Reply
126
+
127
+ **Posts**
128
+
129
+ * New Category
130
+ * New Tag
131
+
132
+ **Custom Post Types**
133
+
134
+ * New Term
135
+
136
+ **Multisite ([Multisite Add-on](https://betternotificationsforwp.com/downloads/multisite/))**
137
+
138
+ * New Site Activated or Created - For Network Admin
139
+ * New User Created - For Network Admin
140
+ * Network Admin Email Change Attempted - For New Network Admin
141
+ * Network Admin Email Changed - For Old Network Admin
142
+ * New Site Activated or Created - For Site Admin
143
+ * Site Deleted - For Site Admin
144
+ * Site Admin Email Change Attempted - For New Site Admin
145
+ * Site Admin Email Changed - For Old Site Admin
146
+ * New Site Activated - For User
147
+ * New User Created - For User
148
+ * New User Invited to Site - For User
149
+
150
+ If you'd like to see a notification in the list above, please drop me a line in the forum and I'll see what I can do to add it.
151
+
152
+ If you want to let users create their own email notifications, check out my other plugin: [Content Notify](https://contentnotify.com).
153
+
154
+ > Like this plugin? Please leave it [a great review](https://wordpress.org/support/plugin/bnfw/reviews/?rate=5#new-post)! Don't think the plugin is worthy of 5 stars? Having problems? Let me know in the [forum](https://wordpress.org/support/plugin/bnfw/) and I'll do my best to help.
155
+
156
+ > DISCLAIMER
157
+ > This is an incredibly useful and highly rated plugin however, it's possible that overuse or abuse of this plugin could upset your users by sending them too many notifications. By downloading / installing / using this plugin, you take full responsibility of the management / quantity / types of notifications that are sent out from it including abiding by any SPAM laws in your country / operating areas, dealing with / responding to subscription / unsubscription requests, complaints, and so on. I accept no liability or responsibility for SPAM or abuse of this plugin from the user(s) of or anyone that may receive notifications as a result of the use of this plugin. I'm trusting you, please don't abuse your users.
158
+
159
+
160
+
161
+ == Installation ==
162
+
163
+ 1. Upload the 'bnfw' plugin folder to the '/wp-content/plugins/' directory or install it via your WordPress Admin.
164
+ 2. Activate the plugin through the 'Plugins' menu in WordPress.
165
+ 3. Use the settings in the new 'Notifications' Menu item in the sidebar to configure the plugin.
166
+ 4. (Optional) Install a plugin to use SMTP instead of `wp_mail()`. I recommend [Post SMTP Mailer/Email Log](https://wordpress.org/plugins/post-smtp/).
167
+ 5. Test by creating a notification with some [shortcodes](https://betternotificationsforwp.com/shortcodes/ "Shortcodes for use in Better Notifications for WP").
168
+
169
+
170
+
171
+ == Frequently Asked Questions ==
172
+
173
+ > Full Documentation for BNFW can be found [here](https://betternotificationsforwp.com/documentation/ "Documentation for Better Notifications for WP").
174
+
175
+ = Is this plugin compatible with the new Block Editor (Gutenberg) in WordPress 5? =
176
+
177
+ Yes and no. Most notifications work but full support can't be guaranteed for all notifications at the moment. Full support is on the roadmap but for the time being, I'd recommend using the [Classic Editor plugin](https://wordpress.org/plugins/classic-editor/) with BNFW.
178
+
179
+ = What are shortcodes? Where can I use them in this plugin? =
180
+
181
+ Shortcodes are text in square brackets that output content of some kind. For example, if you want to add the content of a post to a notification for 'New Post Published', you can use the `[post_content]` shortcode to display this in the email that is sent out.
182
+
183
+ Shortcodes can be used in the 'Subject' and 'Message Body' of your notifications, except for a select few (due to a restriction in WordPress).
184
+
185
+ > A handy list of shortcodes you can use is available [here](https://betternotificationsforwp.com/shortcodes/ "Shortcodes for use in Better Notifications for WP").
186
+
187
+ = What are some scenarios this plugin could be used for? =
188
+
189
+ * Outreach: A blog/news site with hundreds of subscribers and want to use it to alert them of new blog posts.
190
+ * Communication: A small, internal WordPress site and use it to alert staff of new posts or comments.
191
+ * Monitor: A website for an awesome new product or service and use it for notifications of pingbacks and trackbacks.
192
+ * Security: To receive alerts of password reset requests and their corresponding user.
193
+
194
+ The possibilities are endless!
195
+
196
+ = Does this plugin work with anti-spam plugins, such as Akismet? =
197
+
198
+ Yes! There is an option for suppressing comments marked as SPAM in the plugin settings.
199
+
200
+ = Does this plugin and the add-ons work with Multisite? =
201
+
202
+ Yes! Full support for WordPress Multisite was added in 1.6.13, alongside the release of the [Multisite Add-on](https://betternotificationsforwp.com/downloads/multisite/).
203
+
204
+ = Can users create their own email notifications? =
205
+
206
+ Not using BNFW. If you want to let users create their own email notifications, check out my other plugin: [Content Notify](https://contentnotify.com).
207
+
208
+ = Notifications aren't coming through! =
209
+
210
+ First of all, follow [this article](https://betternotificationsforwp.com/how-can-i-receive-the-best-support/) about how to find out what might be causing the problem. Additionally, please take a look at [this help document](https://betternotificationsforwp.com/documentation/getting-started/how-to-improve-email-delivery/) to see how you might improve email delivery when using Better Notifications for WP.
211
+
212
+ Many hosts place a limit on the number of emails that can be sent out within an hour so this may also cause some delay in emails arriving. [This article](https://support.mailpoet.com/knowledgebase/lists-of-hosts-and-their-sending-limits/) has a fairly extensive list of hosts and their corresponding email rate limits that's worth checking out. Alternatively, please check with your host directly to find out what your limit is.
213
+
214
+ If you're still having problems, please drop me a line in the [Free Support Forums](https://wordpress.org/support/plugin/bnfw) and I'll do my best to help.
215
+
216
+ = Some of my shortcodes aren't working! =
217
+
218
+ It's possible you're inserting a shortcode into a notification that cannot use it. For example: the 'New Category' email notification cannot use any of the author or time shortcodes as WordPress only stores the category name, category slug and category description in the database by default. It's also worth checking the spelling and underscores in any shortcodes as well as if they are wrapped in square brackets `[]`.
219
+
220
+ = Other emails from WordPress / other plugins are being messed up! =
221
+
222
+ WordPress, by default, sends all emails in Plain Text. If you'd like to include code or use the WYSIWYG editor as part of Better Notifications for WP in your emails, you can change this to HTML using the global setting in Better Notification for WordPress. This can be found under the 'Notifications > Settings' screen. Changing this global email format setting will affect how all emails are sent out from WordPress however, so you may experience formatting issues with emails sent out from other plugins if you change the email format setting in this way. If you do, change this setting to Plain Text. You can also set the email format on a per-notification basis when setting-up a new Notification. The caveat is that WordPress will only either allow setting the email format globally (for all emails) or individually for anything that's non-transactional.
223
+
224
+ = Custom Post Type 'X' isn't showing in the list of available custom post types =
225
+
226
+ This is most likely because it's `public` setting is set to `false`. Try changing this and see if it shows up in the list. If the custom post type has been created by a plugin and is set to private (such as [TablePress](https://wordpress.org/plugins/tablepress/ "TablePress")), you'll need to get in touch with the plugin author to see if they'll consider changing it to public instead so that BNFW can send out notifications for it.
227
+
228
+ = Can I translate this plugin? =
229
+
230
+ Yes, of course! The plugin is completely translation-friendly and if you send me your .po file, I'll make sure to include it in the plugin and credit you in the changelog.
231
+
232
+
233
+
234
+ == Screenshots ==
235
+
236
+ 1. All Notifications
237
+
238
+ 2. Add New / Edit Notification
239
+
240
+
241
+
242
+ == Changelog ==
243
+
244
+ = 1.8.4 - 12th August 2020 =
245
+ * Fixed: In certain situations, the password reset key would get modified when using the User Lost Password - For User notification.
246
+ * Fixed: An issue in the Custom Fields add-on where the Send to Author checkbox did not send a User Custom Field Updated notification to the user.
247
+ * Improved: Compatibility with the latest version of the [Digest add-on](https://betternotificationsforwp.com/downloads/digest/).
248
+ * Improved: Compatibility with the latest version of the [Multisite add-on](https://betternotificationsforwp.com/downloads/multisite/).
249
+
250
+ = 1.8.3 - 1st June 2020 =
251
+ * Fixed: If you activate BNFW and have not created any notifications, the default WordPress personal data export and erase request emails did not get sent.
252
+ * Added: Compatibility with the 1.2 release of the [Custom Fields add-on](https://betternotificationsforwp.com/downloads/custom-fields/).
253
+
254
+ = 1.8.2 - 14th May 2020 =
255
+ * Fixed: Email addresses stored in custom fields weren't being used in Comment notifications when the Custom Fields add-on was installed.
256
+ * Fixed: Two PHP notices showing above the subscriptions form when the Subscriptions add-on was installed.
257
+ * Fixed: 'The User Lost Password - For User' notification wasn't outputting shortcodes in the message subject.
258
+ * Fixed: 'The User Lost Password - For User' notification had an incorrect shortcode when inserting the default email content.
259
+
260
+ = 1.8.1 - 21st April 2020 =
261
+ * Added: Core changes to allow the [Global Override add-on](https://betternotificationsforwp.com/downloads/per-post-override/) to only send out notifications once.
262
+ * Fixed: A range of issues relating to the [Global Override add-on](https://betternotificationsforwp.com/downloads/per-post-override/).
263
+
264
+ = 1.8 - 8th April 2020 =
265
+ * POTENTIAL BREAKING CHANGES - Please edit and re-save each comment notification you have set-up to ensure that the correct notification is selected and saved.
266
+ * New: A huge overhaul of the comment notifications which now gives a great comment management workflow.
267
+ * New: New Comment, New Comment Awaiting Moderation, Comment Approved, and Comment Reply notifications are now availble to all posts, pages, custom post types, and media attachments.
268
+ * Improved: The 'Send this notification to the Author' checkbox has been overhauled to work better for the above notifications. See the relevant section in [this support document](https://betternotificationsforwp.com/documentation/notifications/adding-a-new-notification/) for more information.
269
+
270
+ = 1.7.7 - 27th March 2020 =
271
+ * New: Three new notifications! "New Media Published", "Media Updated", "Media Comment" - complete with new shortcodes for caption, alt text, dimensions, etc.
272
+ * New: "User Logged In - For Admin" notification - sends a notification to the admin when users log in.
273
+ * New: "User Logged In - For User" notification - sends a notification to the user when they log in.
274
+ * New: "Published to Trash" notification - sends a notification when a published post is moved to the trash.
275
+ * Improved: Support for plugins that allow users to be assigned to multiple user roles.
276
+
277
+ = 1.7.6 - 30th January 2020 =
278
+ * New Notification: New Comment Approved. This is sent after the comment has been approved.
279
+ * New: You can now output the description for the first available category in any new Post/Page/Custom Post Type notification, as well as to New Comment, Comment Awaiting Moderation, and Comment Reply notifications using the shortcode `[post_category_description]`. You can also use the `[post_category_slug]` notification to output the first available category slug.
280
+ * Added: Merged two pull requests that came in via the GitHub clone of this plugin relating to filters - ([#1](https://github.com/jackmcconnell/bnfw/pull/4/commits/501d7cdcb9855ad5aa08e4510f752f9ff319567f) and [#2](https://github.com/jackmcconnell/bnfw/pull/5)).
281
+ * Added: `$update` as 3rd parameter to `bnfw_trigger_insert_post` filter.
282
+ * Added: Additional translatable strings.
283
+ * Improved: 'Post Pending Review' notifications are now only sent for the first update to a post that is pending review. Subsequent updates will not trigger another notification.
284
+ * Fixed: Advanced Custom Fields (ACF) was triggering incorrect notifications when post/page/custom post types were submitted via a front-end form.
285
+ * Fixed: The `[post_excerpt]` shortcode now conforms to the `excerpt_length` filter.
286
+ * Fixed: Post Pending Review notifications were being sent in duplicate in certain situations.
287
+ * Fixed: Added an additional check to ensure a Multisite doesn't crash when BNFW is enabled on a site with no Administrator users.
288
+ * Fixed: Multisite notifications were showing the HTMl/Text options for notifications that could only support text.
289
+
290
+ = 1.7.5 - 23rd September 2019 =
291
+ * Added: Support for the new [Digest add-on](https://betternotificationsforwp.com/downloads/digest/)!
292
+ * Added: Support for some big changes coming to the [Custom Fields add-on](https://betternotificationsforwp.com/downloads/custom-fields/).
293
+ * Added: New Spanish translation.
294
+ * Fixed: An issue relating to shortcodes in the [Multisite add-on](https://betternotificationsforwp.com/downloads/multisite/).
295
+ * Fixed: Any 'Privacy' notifications are now hiding options that can't be overridden.
296
+ * Fixed: Disabling automatic paragraphs on the 'User Lost Password - For User' notification wasn't working.
297
+
298
+ = 1.7.4 - 19th August 2019 =
299
+ * New: You can now filter the mail headers in BNFW using `bnfw_mail_headers`. More details [here](https://betternotificationsforwp.com/documentation/actions-and-filters/).
300
+ * Added: Better support for the new Block Editor (Gutenberg) and all post/page/custom post type notifications. More and better support coming soon.
301
+ * Added: Support for the upcoming [Digest add-on](https://betternotificationsforwp.com/downloads/digest/).
302
+ * Fixed: The 'New User Registration - For Admin' notification was sending out the default WordPress notification as well as the BNFW notification in some cases.
303
+ * Fixed: The 'New Comment - Awaiting Moderation' notification was missing from the [Global Override add-on](https://betternotificationsforwp.com/downloads/per-post-override/).
304
+ * Fixed: A fatal error which occasionally occurred when a user changes their password on the front-end.
305
+
306
+ = 1.7.3 - 10th April 2019 =
307
+ * New: Notification - 'User Email Changed - For Admin'. This is sent to an admin after a user has successfully changed and confirmed a new email address.
308
+ * New: Notification - 'User Email Changed Confirmation - For User'. This is sent to a user in order for them to confirm a change to their email address.
309
+ * Added: You can now Enable or Disable a notification by hovering over it on the 'All Notifications' screen as well as enabling or disabling notifications in bulk from the Bulk Actions dropdown menu.
310
+ * Fixed: The 'User Email Changed - For User' and 'User Password Changed' notifications were no longer being disabled when attempting to override it since WordPress 5.0.
311
+ * Fixed: An issue where the new Block Editor (Gutenberg) caused double notifications upon publishing a post. Better support for Gutenberg will be coming this year. For now, it is recommended to use the [Classic Editor](https://wordpress.org/plugins/classic-editor/) plugin.
312
+ * Fixed: The 'New User Registration - For Admin' and 'New User Registration - For User' notifications should work better now after the changes that were made in 1.7.
313
+ * Fixed: The 'Send this Notification to the Author' checkbox was missing from the 'New Comment' notification.
314
+ * Fixed: The `[comment_moderation_link]` shortcode was outputting blank when used on the 'Post – New Comment Awaiting Moderation' notification and sent to non-Administrator user roles.
315
+ * Fixed: The `[edit_post]` shortcode was escaping ampersands in the URL.
316
+
317
+ = 1.7.2 - 21st November 2018 =
318
+ * Fixed: WYSIWYG editor and meta box compatibility for Gutenberg. After the public release of WordPress 5.0 BNFW will continue to use the Classic Editor, as opposed to the new block editor.
319
+ * Fixed: New Comment Awaiting Moderation notifications weren't being sent to the Post Author, where selected.
320
+
321
+ = 1.7.1 - 5th November 2018 =
322
+ * New: Full support for the new [Subscriptions (GDPR)](https://betternotificationsforwp.com/downloads/subscriptions-gdpr/) add-on.
323
+ * Fixed: Comments marked as SPAM were triggering the 'New Comment Awaiting Moderation' notification.
324
+ * Fixed: An issue relating to the 'New Comment Awaiting Moderation' notification not saving when used in conjunction with the Send To Any Email and Custom Fields add-ons.
325
+ * Fixed: A couple of minor javascript errors relating to BNFW add-ons.
326
+
327
+ = 1.7 - 5th September 2018 =
328
+ * A huge update packed full of new features and bug fixes, especially for those that like privacy and comment notifications!
329
+ * New: Six GDPR / Privacy Notifications. These allow you to override all the new notifications that WordPress 4.9.6 introduced relating to exporting and erasing user data. These are: Privacy Confirm Action: Export Data Request For User, Privacy Confirm Action: Erase Data Request For User, Privacy – Data Export – For User, Privacy – Data Erased – For User, Privacy – Confirm Action: Export Data Request – For Admin, Privacy – Confirm Action: Erase Data Request – For Admin.
330
+ * New: The 'New Comment / Awaiting Moderation' notification has now been split into two so you can have a notification for just New Comments, or just Comments Awaiting Moderation, or both! Can be used on Posts, Pages, and Custom Post Types.
331
+ * New: Shortcode - `[user_role]`. This outputs the user's role (or roles if assigned to more than one).
332
+ * New: Shortcode - `[first_image]`. Outputs the URL of the first image in a post/page/custom post.
333
+ * New: Shortcode - `[post_type_archive]`. Outputs the link for the post type / custom post type archive page.
334
+ * New: Shortcode - `[post_category_slug]`. Outputs the category slug of a post or the first category slug if the post is assigned to multiple categories.
335
+ * New: Shortcode - `[comment_moderation_link]`. This outputs the link to the WP Admin where you can moderate a new comment.
336
+ * New: Shortcode - `[comment_parent_content]`. This outputs the content of the parent comment when used in a Comment Reply notification.
337
+ * New: Three Comment Moderation Shortcodes - `[comment_moderation_approve]`, `[comment_moderation_spam]`, `[comment_moderation_delete]`. All for new comments. All should be self-explanatory.
338
+ * New: A new column is available in the 'All Notifications' screen that shows which users are excluded from a notification.
339
+ * Added: Dutch translation (props Piet).
340
+ * Changed: The 'New User Registration - For Admin' notification can now override/be overridden by notifications that use the `wp_new_user_notification_email_admin` filter, introduced in WordPress 4.9.
341
+ * Updated: Some of the default content that can be quickly added to a default notification was out-of-date.
342
+ * Changed: Freemius has now been removed in favour for the previous iteration of user tracking. This is now an opt-in checkbox on the Notifications > Settings page. Please consider checking this box to help make BNFW even better.
343
+ * Fixed: The 'Send this notification to the Author' checkbox still required a user or role to be entered into the 'Send To' box as well.
344
+ * Fixed: The `[edit_post]` shortcode wasn't outputting anything when a non-Editor role could post on the front-end.
345
+ * Fixed: Email addresses beginning with numbers weren't being saved when used in conjunction with the Send to Any Email add-on.
346
+ * Fixed: The SVG icon on WordPress.org wasn't exported correctly.
347
+
348
+ = 1.6.14 - 25th May 2018 =
349
+ * New: As part of my plans for implementing GDPR within BNFW, you can now exclude users and/or roles from your notifications in the new 'Except For' box.
350
+ * New: You can now include the post/page author in addition to the list of users and user roles in your notifications (not either/or).
351
+ * New: You can now enable the output of shortcodes again when using the `[post_content]` shortcode in your notifications via a new checkbox in the Settings screen.
352
+ * New: A list of available actions and filters in BNFW is now available in the [website documentation](https://betternotificationsforwp.com/documentation/actions-and-filters/).
353
+ * Updated: The user tracking SDK I use (Freemius) has been updated to allow Multisite network admins to opt-in an entire multisite or delegate opt-in to site-level admins.
354
+ * Fixed: Media inserted via the WYSIWYG editor wasn't showing. This should now be fixed.
355
+ * Fixed: An issue where the `[post_term taxonomy="X"]` shortcode could only be used once in a notification.
356
+ * Fixed: All date shortcodes are now translatable.
357
+
358
+ = 1.6.13 - 5th April 2018 =
359
+ * Added: Full support for the new [Multisite](https://betternotificationsforwp.com/downloads/multisite/) add-on.
360
+ * Fixed: Multisite-only - the user_id was being used instead of the username in the login URL in the Lost Password - For User notification.
361
+ * Fixed: Multisite-only - the New User Registration - For User notification wasn't working at all.
362
+ * Fixed: Multisite-only - Permalink shortcodes weren't using the correct structure and instead were using the default `?p=123` structure when used on sub-sites.
363
+ * Fixed: Some user shortcodes were only being outputted for the first user in a user role.
364
+ * Fixed: An occasional issue where some notifications weren't appearing for custom post types.
365
+
366
+ = 1.6.12 - 1st March 2018 =
367
+ * New: Lots of new global user shortcodes! It's always been a bit difficult to explain how the user shortcodes changes between notifications - sometimes they're for the author of a post, sometimes they're the recipient user. Now, all user shortcodes are used solely for the author and a new set of global user shortcodes are available for the recipient. Full details are on the [Shortcodes](https://betternotificationsforwp.com/documentation/notifications/shortcodes/) documentation page.
368
+ * Added: Preliminary changes for the upcoming [Multisite](https://betternotificationsforwp.com/downloads/multisite/) add-on.
369
+
370
+ = 1.6.11 - 13th February 2018 =
371
+ * Fixed: Update Reminder and Custom Field Updated notifications weren't showing for custom post types.
372
+
373
+ = 1.6.10 - 31st January 2018 =
374
+ * New: Faster customisation! You can now add the subject and message body from a default WordPress email to notifications. Just choose a default WordPress email and click the 'Insert Default Content' button next to the WYSIWYG editor when adding or editing a notification.
375
+ * New: If you want to allow other user roles to create or edit notifications, you can now grant them the 'bnfw' capability using a role editor.
376
+ * Added: A new notice will display at the top of all Notification screens explaining how you can improve email deliverability. You can dismiss this permanently at any time.
377
+ * Added: Inline help tips are now available when creating or editing a notification. Handy if you want to remember how something works but don't want to sift through the documentation.
378
+ * Added: Merged two pull request that came in via the GitHub clone of this plugin - ([#1](https://github.com/jackmcconnell/bnfw/pull/1) and [#2](https://github.com/jackmcconnell/bnfw/pull/2)).
379
+ * Added: For faster support, there is now a Priority Support menu item in the BNFW Notifications menu. Priority Support is available to customers with an active subscription to an add-on.
380
+ * Improved: All date related shortcodes now output in the date and time format set in Settings > General in the WordPress Admin.
381
+ * Improved: The list of available notifications has been re-ordered to make more sense.
382
+ * Improved: A warning will now show if the total user count in the Send To box is more than 200 users.
383
+ * Improved: Usage tracking will now only load on single sites and not on sites that are part of a Multisite network.
384
+ * Updated: Usage tracking SDK updated to the latest version.
385
+ * Fixed: Warnings were showing when posting a new comment on the front-end.
386
+
387
+ = 1.6.9 - 7th December 2017 =
388
+ * Merry Christmas & Happy New Year!
389
+ * New: Support for new [Profile Builder Add-on](https://betternotificationsforwp.com/downloads/profile-builder/).
390
+ * Fixed: An issue where the YouTube video wasn't showing properly on the BNFW WP.org plugin page.
391
+
392
+ = 1.6.8 - 23rd November 2017 =
393
+ * New: All shortcodes that are correctly registered within WordPress will now be stripped from the `[post_excerpt]` and `[post_content]` shortcodes so as to not cause layout or styling issues within your notifications.
394
+ * Added: A minimum PHP version of 5.6 is now required to run BNFW.
395
+ * Fixed: Compatibility with the [Reminders](https://betternotificationsforwp.com/downloads/update-reminder/) and [Conditional Notifications](https://betternotificationsforwp.com/downloads/conditional-notifications/) add-ons.
396
+ * Reminder: You may be asked to opt into plugin tracking when updating. Please consider doing so as it really helps with the development of the plugin. Full details on what is tracked is available on [this page](https://betternotificationsforwp.com/documentation/settings/what-information-will-be-tracked-by-opting-into-usage-tracking/).
397
+
398
+ = 1.6.7 - 10th August 2017 =
399
+ * New: Shortcode - `[current_time]` Will output the current time as per the settings in WordPress > Settings.
400
+ * New: Shortcode - `[current_date]` Will output the current date as per the settings in WordPress > Settings.
401
+ * New: Shortcode - `[admin_email]` Adds the email address of the main site admin as per the settings in WordPress > Settings.
402
+ * Fixed: BNFW now respects the post status of posts submitted via ACF's front-end forms (acf_form).
403
+ * Fixed: Privately Published posts that are updated now trigger the 'Post Updated' notification.
404
+ * Changed: The opt-in for plugin tracking in BNFW has changed. You may be asked to opt-in / opt-out when updating the plugin.
405
+
406
+ = 1.6.6 - 28th June 2017 =
407
+ * Fixed: New Comments on Custom Post Types weren't always sending notifications.
408
+ * Fixed: An issue where using the `bnfw_trigger_insert_post()` filter wasn't always working correctly.
409
+ * Fixed: An issue where checking a notification was disabled wasn't always working correctly.
410
+ * Added: Support for limiting 'New User Registration - For User' notifications to specific user roles in the recently updated [Conditional Notifications add-on](https://betternotificationsforwp.com/downloads/conditional-notifications/).
411
+ * Added: Support for huge logic enhancements to the soon to be updated [Global Override add-on](https://betternotificationsforwp.com/downloads/per-post-override/).
412
+ * Added: Support for the new 'User Login Reminder' notification in the soon to be updated [Reminders add-on](https://betternotificationsforwp.com/downloads/update-reminder/).
413
+
414
+ = 1.6.5 - 18th May 2017 =
415
+ * New: ACF Form compatibility has now been re-added! Props to @elliotcondon for the help.
416
+ * Remember to subscribe to the [mailing list](http://voltronik.us2.list-manage2.com/subscribe?u=57c012217219b2d81dda0085f&id=28eebdab28) if you want to be notified of new add-ons for BNFW and receive 10% off your first add-on purchase.
417
+
418
+ = 1.6.4 - 18th April 2017 =
419
+ * New: You can now use `[global_user_username]` in any notification to output the recipient's username.
420
+ * New: When a user is assigned to multiple roles which have been added to a notification, they will only receive the notification once and not once for each role that the notification is configured to send to.
421
+ * Improved: Clearer labelling on new custom post type notifications.
422
+ * Removed / Fixed: The addition of ACF Form compatibility in the last version was causing a range of issues, some minor, some serious. Until a more robust solution is found, this has been removed from the plugin whilst I try and get in touch with the author of ACF and work on a solution or collaboration.
423
+ * Fixed: The 'Send To' select box was being overlayed by the dropdown that shows when clicking in the box.
424
+ * Fixed: Searching for a user when a site has more than 200 users in the 'Send To' box now works as expected.
425
+
426
+ = 1.6.3 - 13th March 2017 =
427
+ * Added: Support for the new [Send to Any Email add-on](https://betternotificationsforwp.com/downloads/send-to-any-email/).
428
+ * Added: Support for Advanced Custom Field (ACF) front-end forms. Finally!
429
+ * Updated: French translation (props @matcho).
430
+ * Improved: The 'Lost Password' notifications now begin with 'User Lost Password' to make them easier to understand.
431
+ * Fixed: The 'Reply To' fields weren't saving correctly.
432
+ * Fixed: Ensure post shortcodes are rendered before sending (props @cliffpaulick).
433
+ * Fixed: A minor issue with the custom field selection box when using the [Custom Fields add-on](https://betternotificationsforwp.com/downloads/custom-fields/).
434
+
435
+ = 1.6.2 - 17th February 2017 =
436
+ * Fixed: The 'Shortcode Help' button wasn't working correctly for some of the new notifications.
437
+
438
+ = 1.6.1 - 17th February 2017 =
439
+ * New & Improved: The 'Password Changed - For User', 'Password Changed - For Admin', and 'User Email Changed - For User' notifications have now been fully implemented.
440
+ * New: You can now use `[post_term taxonomy="TAXONOMY_NAME"]` to output the term(s) from the chosen taxonomy.
441
+ * Improved: Any anti-SPAM plugin should now work with BNFW, not just Akismet.
442
+ * Improved: Emails sent via the "Send me a Test Email" button now prepend the Subject line with "Test Email: " so that you can tell which is a test notification and which is a real notification when using an email log plugin.
443
+ * Fixed: The Global User Shortcodes weren't outputting anything when used in the 'User Email Changed - For User' notification.
444
+ Fixed: When a 'Lost Password For User' notification had been set-up but disabled, it wasn't disabling the default WordPress notification.
445
+ * Fixed: The 'WordPress Core Automatic Background Updates' notification wasn't working at all.
446
+ * Fixed: The Global User Shortcodes were being output incorrectly in test emails.
447
+ * Fixed: The `[featured_image]` shortcode was outputting the shortcode name as opposed to a blank when no featured image is set.
448
+ * Fixed: A number of warnings and notices relating to the 'Lost Password' notifications when on WordPress's Lost Password screen.
449
+ * Fixed: The 'Add-on Licenses' screen was displaying HTML characters where there shouldn't be any.
450
+ * Fixed: An error was occurring when triggering notifications when used in conjunction with the latest version of the Custom Fields add-on.
451
+ * Fixed: Some language translation strings were incorrect.
452
+ * Updated: EDD_SL_Plugin_Updater is now at the latest version for add-ons.
453
+
454
+ = 1.6 - 12th December 2016 =
455
+ * Merry Christmas & Happy New Year!
456
+ * New: Anonymous tracking of the features you use in BNFW is now an opt-in checkbox on the Notifications > Settings page. Please consider checking this box to help make BNFW even better. You'll also receive a 10% off coupon code when you sign-up to the [mailing list](http://voltronik.us2.list-manage2.com/subscribe?u=57c012217219b2d81dda0085f&id=28eebdab28) too.
457
+ * New: Notifications for privately published posts / pages / custom post types.
458
+ * New: Notification and accompanying shortcode for customising WordPress Core Automatic Background Updates (Success / Fail / Critical).
459
+ * New: Notification for User Password Changed.
460
+ * New: Notification for User Email Changed - For User.
461
+ * New: Shortcodes for showing the old and new user role when used in conjunction with the User Role Changed notifications.
462
+ * New: You can now add a 'Reply To' name and email address in the Additional Email Fields for all notifications that support it.
463
+ * New: You can now prevent yourself from receiving notifications of comments or replies to comments on one of your posts by combining the two checkboxes 'Send this notification to the Author only' and 'Do not send this Notification to the User that triggered it'.
464
+ * New: All transactional notifications can now be set to either HTML or Plain Text.
465
+ * Improved: Better compatibility with [Theme My Login](https://en-gb.wordpress.org/plugins/theme-my-login/).
466
+ * Improved: Re-worded a checkbox to be more understandable. It did say, "Disable this Notification for the User that triggered it", but now says, "Do not send this Notification to the User that triggered it".
467
+ * Improved: Compatibility with Mashshare.
468
+ * Fixed: Global User Shortcodes weren't being outputted correctly in the 'Lost Password - For User' notification.
469
+ * Fixed: Child themes weren't being registered correctly in the filter when using the front-end forms filter.
470
+ * Fixed: The number of options within notifications was being limited to the number of blog posts WordPress was set to show.
471
+ * Fixed: The 'Shortcode Help' button wasn't linking to the BNFW website correctly for some BNFW add-ons.
472
+
473
+ = 1.5.3 - 13th September 2016 =
474
+ * Fixed: User Roles in the 'User Roles / Users' admin column were being displayed only in lowercase.
475
+ * Fixed: The `[wp_capabilities]` shortcode wasn't outputting properly. It now displays the higher-level capabilities that the user has.
476
+
477
+ = 1.5.2 - 6th September 2016 =
478
+ * Fixed: Custom User Roles were showing 0 users in the 'To' field.
479
+ * Added: Generic CSS classes to BNFW admin.
480
+ * Updated: German Translation to show English in certain places where translation text breaks the WP Admin UI (props @helmi).
481
+ * Full code review and submission to WordPress VIP!
482
+
483
+ = 1.5.1 - 5th August 2016 =
484
+ * Fixed: 'Text' mode in the WYSIWYG editor didn't show any buttons when the BNFW Per-post Override Add-on was activated.
485
+
486
+ = 1.5 - 25th July 2016 =
487
+ * New: Global Site Shortcodes! Include these in any notification to output the site title (`[global_site_title]`), site tagline (`[global_site_tagline]`), or site URL (`[global_site_url]`).
488
+ * New: Global User Shortcodes! Include these in any notification to output the user's first name (`[global_user_firstname]`), user's last name (`[global_user_lastname]`), or user's email address (`[global_user_email]`).
489
+ * New: The 'User Role Changed' notification has been split into two transactional notifications - one that can be sent to users and one that can be sent to admins.
490
+ * New: Shortcode `[featured_image]`. Outputs the URL for the featured image (if one is available).
491
+ * New: Shortcode `[user_avatar]`. Outputs the User's avatar when used in a capable notification.
492
+ * New: Shortcode `[commenter_avatar]`. Outputs the comment author's avatar for comment-based notifications.
493
+ * Improved: 'Comment Reply' notifications are now available to use for Pages and Custom Post Types.
494
+ * Improved: When sending notifications to user roles in the 'To' field, it will now show how many users are in that role.
495
+ * Improved: The 'Lost Password - For User', 'User Role Changed - For Admin', and 'User Role Changed - For User' notifications now have the option to 'Stop additional paragraph and line break HTML from being inserted into my notifications' via the checkbox below the WYSIWYG editor on the Add New / Edit Notification screen.
496
+
497
+ = 1.4.1 - 3rd June 2016 =
498
+ * Fixed: Multiple emails were being sent for a single notification for a small number of users. After lots of hunting and lots of testing, I'm hoping this should now be fixed.
499
+ * Fixed: The 'User Role Changed' notification was broken after the update to WordPress 4.5.
500
+ * Fixed: The 'Password Reset - For User' and 'New User - Post-registration Email' notifications were being sent in HTML but with all carriage returns / line breaks stripped out.
501
+ * Fixed: User shortcodes for new comments on custom post types weren't being outputted properly.
502
+ * Fixed: The 'Notifications' BNFW menu item in the Sidebar in the WordPress Admin was showing for non-admins.
503
+ * Added: German Translation (props Michael Schröttle).
504
+
505
+ = 1.4 - 8th April 2016 =
506
+ * New: Shortcode `[post_slug]`. Output the post slug.
507
+ * New: Shortcode `[edit_post]`. Outputs the link to edit the post / page / custom post.
508
+ * New: Shortcode `[post_parent_permalink]`. Outputs a permalink to the post / page / custom post's parent item.
509
+ * New: Shortcode `[author_link]`. Outputs a link to the post / page / custom post's author archive.
510
+ * New: You can now add the collection of User Shortcodes to the 'Lost Password - For User' email.
511
+ * New: Support for the 'O2' plugin, when used in conjunction with the 'P2' Theme via a filter. Please see the [documentation](https://betternotificationsforwp.com/documentation/) for details.
512
+ * Improved: Users were getting confused with the 'Welcome Email', thinking it operated like that in the 'SB Welcome Email Editor' plugin. The name of this notification has been changed from 'New User - Welcome Email' to 'New User - Post-registration Email' to help differentiate its functionality in BNFW.
513
+ * Improved: The screen where you add your license(s) after purchasing any BNFW add-on(s) is now called 'Add-on Licenses', instead of going to 'Settings' and adding them there.
514
+ * Improved: Setting a notification to send to 'the author only' now shows a label in the 'User Roles / Users' column in the 'All Notifications' screen.
515
+ * Improved: 'New Comment / Awaiting Moderation', 'New Trackback', and 'New Pingback' notifications now show the 'Send this notification to the Author only' checkbox.
516
+ * Improved: If a notification is present but disabled, the default WordPress notification (if there is one), will not be sent.
517
+ * Fixed: New Post Published notifications weren't being sent if you had the Per-post Override add-on installed.
518
+
519
+ = 1.3.9.5 - 26th February 2016 =
520
+ * Fixed: New Post Published notifications were triggering multiple times due to `auto_draft_to_publish`.
521
+
522
+ = 1.3.9.4 - 15th February 2016 =
523
+ * Filter improvements for the new [Per-post Override add-on](https://betternotificationsforwp.com/downloads/per-post-override/).
524
+
525
+ = 1.3.9.3 - 12th February 2016 =
526
+ * General bug fixes and updates relating to future add-ons and the new [Per-post Override add-on](https://betternotificationsforwp.com/downloads/per-post-override/) which allows you to override your notifications for each post / page / custom post.
527
+ * Added: New Post Published notifications now trigger on `auto_draft_to_publish`. This may or may not effect you if you publish through a front-end form or from an app.
528
+
529
+ = 1.3.9.2 - 29th January 2016 =
530
+ * The [Add-on Store](https://betternotificationsforwp.com/downloads/) is now live! Looking for some extra, premium functionality in your notifications? You might find an add-on for it!
531
+ * New: A filter is now available for adding compatibility to themes for creating posts using `wp_insert_post`. Please see the bottom of the [FAQ](https://wordpress.org/plugins/bnfw/faq/) for details.
532
+ * Fixed: 'User Role Changed' notifications were being triggered for new users.
533
+ * Fixed: The label for custom taxonomies was showing in the Notification select box even if you didn't have any.
534
+ * Fixed: A warning was showing when no 'CC' or 'BCC' details were added but the 'Name' and 'From' details were specified.
535
+ * Fixed: A warning was showing after a taxonomy was deleted but a notification existed for it.
536
+ * Fixed: Replaced select2 v4 script for full version for better compatibility with other plugins.
537
+ * Fixed: The javascript in the plugin is now translatable.
538
+ * Added: French translation - props Mygale06.
539
+
540
+ = 1.3.9.1 - 9th January 2016 =
541
+ * Fixed: Missing shortcode link for new 'User Role Changed' notification.
542
+ * Fixed: Duplicate 'User Role Changed' listing in the Notification select box.
543
+
544
+ = 1.3.9 - 9th January 2016 =
545
+ * Happy New Year!
546
+ * New: Transactional notification for when a User Role Changed. This is sent to the user when their User Role is changed.
547
+ * Fixed: Ensure that at least one User or User Role is selected before saving a notification.
548
+ * Fixed: select2 v4 update and compatibility with Ultimate Member and ACF Pro.
549
+
550
+ = 1.3.8 - 16th December 2015 =
551
+ * Fixed: Notifications weren't being sent out at all. After lots of testing, I think this should now be resolved.
552
+ * Fixed: An issue where quotes in the Subject field were causing part of/all the field content to be removed.
553
+ * Improved: If you have more than 100 users on your site, the User Roles / Users select box will show the first 100 users only. You can search through the rest by typing the first character of a username in the select box and it will show you any matching users.
554
+
555
+ = 1.3.7 - 11th December 2015 =
556
+ * Fixed: An issue where EDD_SL_Plugin_Updater class was already declared by another plugin.
557
+
558
+ = 1.3.6 - 11th December 2015 =
559
+ * Merry Christmas to you all!
560
+ * New: Password Reset notifications can now be in HTML or Plain Text.
561
+ * Improved: The Users / User Role select box now utilises live search instead of showing all users in a long list if you have more than 100 users. This should be a huge performance improvement if your site has a lot of users.
562
+ * Updated: select2.js library updated to v4.
563
+ * Fixed: Compatibility with password reset notifications in WordPress 4.1.0 and below.
564
+ * Fixed: An issue where the 'Tag' label was showing incorrectly in the 'All Notifications' screen.
565
+ * I've added a short disclaimer to the [Description Tab](https://wordpress.org/plugins/bnfw/) regarding SPAM and overuse/abuse of this plugin which I recommend a quick read through.
566
+
567
+ = 1.3.5 - 9th October 2015 =
568
+ * Fixed: A large bug that was causing issues with Password URL shortcodes in the 'New User Registration - For User' and 'Password Reset - For User' notifications.
569
+ * Fixed: An issue where the 'disabled wpautop' checkbox was appearing on transactional emails.
570
+ * Fixed: Some labels in the 'All Notifications' screen weren't formatted correctly.
571
+ * Fixed: Translations weren't referenced correctly. Auto-translation will be [done by WordPress.org automatically](https://make.wordpress.org/plugins/2015/09/01/plugin-translations-on-wordpress-org/) at some point in the future.
572
+
573
+ = 1.3.4 - 2nd October 2015 =
574
+ * New: Choose automatic or manual paragraph / line breaks in the WYSIWYG editor. This fixes an issue where they were inserted automatically when they weren't desired. The checkbox for this is below the WYSIWYG editor.
575
+ * New: You can now add images to your notifications using the 'Add Media' button above the WYSIWYG editor.
576
+ * New: Portuguese Brazil translation for v1.3.3 (props Glayton Caixeta).
577
+ * New: BNFW now has it's own [website](https://betternotificationsforwp.com/)!
578
+ * New: Buttons have been added linking to the Documentation and Shortcode Help sections of the website next to the WYSIWYG editor.
579
+ * New: Support for premium add-ons, coming very soon! More info and sign-up for updates [here](https://wordpress.org/support/topic/add-ons-are-coming-sign-up-for-updates).
580
+ * New: Added a video overview of BNFW showing it's features and functionality to the main plugin page and website.
581
+ * Fixed: The 'New User Registration - For User' now works again after WordPress 4.3 broke it.
582
+ * Fixed: HTML using quotes was being escaped in emails.
583
+ * Fixed: The 'Settings' sidebar menu item wasn't highlighting properly.
584
+ * I also added all previous release dates to this changelog.
585
+ * If you liked this plugin, please feel free to leave an honest [review](https://wordpress.org/support/view/plugin-reviews/bnfw?filter=5#postform). If you didn't or have a problem, please send me a message in the [Support Forum](https://wordpress.org/support/plugin/bnfw).
586
+
587
+ = 1.3.3 - 22nd August 2015 =
588
+ * New: You can now send a notification to the Post Author only, where a notification supports it.
589
+ * New: There is now an option in the Settings screen to globally set WordPress to send emails in either HTML or Plain Text. Please read the [FAQ](https://wordpress.org/plugins/bnfw/faq/) for more information about this as there is a small caveat.
590
+ * New: Support for WordPress 4.3.
591
+ * New: Pending posts that are changed to Published now trigger the 'New Post / Page Notification'.
592
+ * Improved: Scheduled notifications now trigger two notifications, one for when they're saved as Scheduled ('Post Scheduled' / 'Page Scheduled') and one for when they're actually published ('New Post Published / New Page Published').
593
+ * Improved: Swapped the green tick for a dashicons tick for a slightly more speedier, native-feeling plugin.
594
+ * Improved: Reduced the flash of hidden elements when loading the New / Edit Notification screen.
595
+ * Fixed: WordPress 4.3 doesn't allow passwords to be automatically created for new users and will instead, send them to a password generator page. The `[password]` shortcode has been replaced with `[password_url]`. `[password]` should still work though so it won't break your existing notifications.
596
+ * Fixed: Some output was being showed when WP_DEBUG was enabled.
597
+ * Fixed: Removed the 'slug' field when enabled from Screen Options.
598
+
599
+ = 1.3.2 - 20th July 2015 =
600
+ * Fixed: Replaced a deprecated function which might cause a warning to show when `WP_DEBUG` was enabled.
601
+
602
+ = 1.3.1 - 18th July 2015 =
603
+ * Fixed: The P2 theme wasn't triggering new post or comment notifications.
604
+ * Fixed: Sometimes the shortcode help link at the bottom of the notification editor wouldn't link to the help page properly.
605
+
606
+ = 1.3 - 2nd July 2015 =
607
+ * New: Option to disable notifications going to the user that triggered them.
608
+ * New: Comment Reply Notification. This is a transactional notification that will only trigger when replying to the original comment (i.e. Up to 2-levels deep).
609
+ * New: New Shortcode: Update Author. Use `[post_update_author]` in any Post or Page notifications to see which user updated the post.
610
+ * New: Choose between sending the notification as plain text or HTML.
611
+ * New: A basic implementation of shortcode help has been added into the plugin. Click the link below the message body editor to see which shortcodes can be used for the currently selected notification.
612
+ * Improved: The 'New User Registration' (For Admin & User) and 'Welcome Email' notifications now allow you to use all of the 'User' shortcodes.
613
+ * Fixed: Formatting in emails sent from other plugins were being effected by BNFW.
614
+ * Fixed: Notifications for Categories, Terms and Tags weren't getting triggered.
615
+ * Fixed: Notifications weren't getting triggered when using the P2 theme (please see the [FAQ](https://wordpress.org/plugins/bnfw/faq/) for more information about this).
616
+ * Fixed: Additional Email fields were being shown for transactional notifications that couldn't use them.
617
+
618
+ = 1.2 - 19th May 2015 =
619
+ * New: WYSIWYG Editor for notifications!
620
+ * New: From Name, From Email, CC and BCC options are now available to use for each notification!
621
+ * New: 'Send Me a Test Email' button. Save your notification first and then send yourself a test email! This will only go to you and not to any of the other users selected in the notification. Shortcodes will not be expanded but will be shown in place.
622
+ * Improved: The User Role / Users drop down box has been unified for simplicity.
623
+ * Fixed: Lost Password (For User) notifications were being sent in plain text.
624
+ * Fixed: Not all custom post types were showing when setting up a new notification.
625
+ * Fixed: Notifications for New Terms not generating notification emails.
626
+ * Fixed: Custom Taxonomies missing from columns in the All Notifications screen.
627
+ * Fixed: Added a space after lists of tags, categories, and terms.
628
+ * Thank you again for all of your support, feedback, and awesome reviews. You people make WordPress great!
629
+
630
+ = 1.1.5.3 - 21st April 2015 =
631
+ * Compatibility with WordPress 4.2.
632
+
633
+ = 1.1.5.2 - 15th April 2015 =
634
+ * Fixed: Custom Post Type Pending Posts not being sent.
635
+ * Fixed: Post excerpt not outputting anything.
636
+ * Removed: `[closedpostboxes_page], [rich_editing], and [admin_color]` as was a bit defunct and causing issues.
637
+ * Changed: `[post_author]` now outputs the display name instead of the author ID.
638
+ * Improved: Clarity of custom post type and taxonomy labels.
639
+
640
+ = 1.1.5.1 - 13th April 2015 =
641
+ * Fix for Custom Post Type notifications not populating shortcodes.
642
+ * Fix for Custom Taxonomy terms not sending out notification emails.
643
+
644
+ = 1.1.5 - 10th April 2015 =
645
+ * New Shortcode: [permalink].
646
+ * New Notifications: 'Scheduled Posts' and 'Scheduled Pages'.
647
+ * New Shortcodes for the above Notifications: [post_scheduled_date] and [post_scheduled_date_gmt].
648
+ * New Notification: 'New Page Published'.
649
+ * New Notification: 'Page 'Updated'.
650
+ * New Notification: 'Page Pending Review'.
651
+ * New Notification: 'New Page - Comment'.
652
+ * Fixed: A few bugs reported via the forums and some others that i've found - thanks everyone!
653
+
654
+ = 1.1 - 16th March 2015 =
655
+ * Lots of cool new stuff and more to come soon!
656
+ * Transactional notifications (notifications intended only for the end user) have been added as a new group in the notifications select box.
657
+ * New Notification: Post Pending Review (for all post types).
658
+ * New Notification: New User Registration (Transactional).
659
+ * New Notification: Password Reset (Transactional).
660
+ * New Notification: New User Welcome Email (Transactional).
661
+ * Added an option to enable or disable each notification.
662
+ * Better support for custom taxonomies and terms.
663
+ * Fixed: A few PHP warnings were showing when using `WP_DEBUG`.
664
+ * Fixed: HTML tags being stripped from `[post_content]` and `[comment_content]`.
665
+ * Removed: Some WordPress Multisite shortcodes that didn't work properly. Proper support for Multisite will come later.
666
+ * If you liked this plugin, please leave a review. If you didn't or have a problem, please send me a message in the Support Forum.
667
+
668
+ = 1.0.2 - 17th January 2015 =
669
+ * Bug fix for `[ID]` shortcode not outputting anything.
670
+ * Bug fix for `[post_category]` showing as empty.
671
+ * Added tags shortcode for use in certain notifications using `[post_tag]`.
672
+
673
+ = 1.0.1 - 21th December 2014 =
674
+ * Bug fix for notifications not being sent to custom user roles or individual users of custom roles.
675
+ * Added a 'Notification Type' column to the notifications screen.
676
+ * Renamed 'User Roles' column in notifications screen to 'User Roles/Users'.
677
+
678
+ = 1.0 - 17th December 2014 =
679
+ * First major release - we're no longer in beta!
680
+ * Total overhaul. The plugin has been completely re-written.
681
+ * Auto-importer: Your old notifications will be imported when updating the plugin.
682
+ * New 'Generator' for easily creating and editing your notifications.
683
+ * More options and notification types as per feedback via the forums - thanks everyone!
684
+ * Granular control over choosing either user roles or individual users you'd like to send a notification to.
685
+ * Fully translatable.
686
+ * Loads of bugfixes and improvements.
687
+
688
+ = 0.2.1 beta - 4th June 2013 =
689
+ * Minor Bugfixes
690
+
691
+ = 0.2 beta - 8th April 2013 =
692
+ * Added an option to suppress SPAM comment notifications.
693
+
694
+ = 0.1 beta - 25th March 2013 =
695
+ * Initial version of the plugin.
696
+ * Settings page for configuring notification types for roles.
697
+ * Email Templates page for customising emails using HTML and shortcodes.
698
+
699
+
700
+
701
+ == Upgrade Notice ==
702
+
703
+ = Migrating from 0.2.1 to 1.0 =
704
+
705
+ Version 1 features an auto-importer which should migrate all of your notifications from any previous versions of the plugin to 1.0.
706
+ Please ensure that you check, double check and test your notifications before and after upgrading.
assets/js/bnfw.js CHANGED
@@ -40,7 +40,7 @@ jQuery(document).ready(function($) {
40
  }
41
 
42
  var notification = $( '#notification' ).val();
43
- var check_comment = notification.split('-');
44
  if ( 'new-comment' === notification || 'approve' === check_comment[0] || 'moderate-comment' === notification ) {
45
  $( '#current-user' ).show();
46
  }
@@ -50,10 +50,12 @@ jQuery(document).ready(function($) {
50
  var notification = $('#notification').val();
51
 
52
  $("#notification, .bnfw-select2").select2();
 
53
  $(".user-select2").select2({
54
  tags: BNFW.enableTags,
55
- tokenSeparators: BNFW.enabletokenSeparators
56
  } );
 
57
  $(".user-ajax-select2").select2( {
58
  ajax: {
59
  url: ajaxurl,
@@ -81,7 +83,7 @@ jQuery(document).ready(function($) {
81
 
82
  toggle_fields();
83
 
84
- var check_comment = notification.split('-');
85
 
86
  if ( 'reply-comment' === notification || notification.startsWith( 'commentreply-' ) ||
87
  'new-user' === notification || 'welcome-email' === notification || 'user-password' === notification ||
@@ -131,8 +133,8 @@ jQuery(document).ready(function($) {
131
  toggle_users();
132
  $( '#user-password-msg, #current-user, #post-author' ).hide();
133
  } else if ('user-login' === notification){
134
- $('#cc, #bcc, #users, #exclude-users, #current-user, #post-author').hide();
135
- $('#toggle-fields').show();
136
  } else {
137
  $('#toggle-fields, #users, #exclude-users, #email-formatting, #disable-autop, #current-user, #post-author').show();
138
  toggle_fields();
@@ -161,7 +163,7 @@ jQuery(document).ready(function($) {
161
  var $this = $(this),
162
  notification = $this.val();
163
 
164
- var check_comment = notification.split('-');
165
 
166
  if ( 'reply-comment' === notification || notification.startsWith( 'commentreply-' ) ||
167
  'new-user' === notification || 'welcome-email' === notification || 'user-password' === notification ||
@@ -212,8 +214,8 @@ jQuery(document).ready(function($) {
212
  toggle_users();
213
  $( '#user-password-msg, #current-user, #post-author' ).hide();
214
  } else if ('user-login' === notification){
215
- $('#cc, #bcc, #users, #exclude-users, #current-user, #post-author').hide();
216
- $('#toggle-fields').show();
217
  } else {
218
  $('#toggle-fields, #users, #exclude-users, #email-formatting, #disable-autop, #current-user, #post-author').show();
219
  $('#user-password-msg').hide();
@@ -267,8 +269,8 @@ jQuery(document).ready(function($) {
267
  case 'email-changed':
268
  case 'email-changing':
269
  case 'new-user':
270
- case 'user-login':
271
- case 'admin-user-login':
272
  case 'welcome-email':
273
  case 'user-role':
274
  case 'admin-role':
@@ -307,7 +309,7 @@ jQuery(document).ready(function($) {
307
  case 'comment':
308
  notification_slug = 'new-comment';
309
  break;
310
- case 'approve':
311
  notification_slug = 'approve-comment';
312
  break;
313
  case 'moderate':
40
  }
41
 
42
  var notification = $( '#notification' ).val();
43
+ var check_comment = notification.split('-');
44
  if ( 'new-comment' === notification || 'approve' === check_comment[0] || 'moderate-comment' === notification ) {
45
  $( '#current-user' ).show();
46
  }
50
  var notification = $('#notification').val();
51
 
52
  $("#notification, .bnfw-select2").select2();
53
+
54
  $(".user-select2").select2({
55
  tags: BNFW.enableTags,
56
+ tokenSeparators: BNFW.enabletokenSeparators
57
  } );
58
+
59
  $(".user-ajax-select2").select2( {
60
  ajax: {
61
  url: ajaxurl,
83
 
84
  toggle_fields();
85
 
86
+ var check_comment = notification.split('-');
87
 
88
  if ( 'reply-comment' === notification || notification.startsWith( 'commentreply-' ) ||
89
  'new-user' === notification || 'welcome-email' === notification || 'user-password' === notification ||
133
  toggle_users();
134
  $( '#user-password-msg, #current-user, #post-author' ).hide();
135
  } else if ('user-login' === notification){
136
+ $('#cc, #bcc, #users, #exclude-users, #current-user, #post-author').hide();
137
+ $('#toggle-fields').show();
138
  } else {
139
  $('#toggle-fields, #users, #exclude-users, #email-formatting, #disable-autop, #current-user, #post-author').show();
140
  toggle_fields();
163
  var $this = $(this),
164
  notification = $this.val();
165
 
166
+ var check_comment = notification.split('-');
167
 
168
  if ( 'reply-comment' === notification || notification.startsWith( 'commentreply-' ) ||
169
  'new-user' === notification || 'welcome-email' === notification || 'user-password' === notification ||
214
  toggle_users();
215
  $( '#user-password-msg, #current-user, #post-author' ).hide();
216
  } else if ('user-login' === notification){
217
+ $('#cc, #bcc, #users, #exclude-users, #current-user, #post-author').hide();
218
+ $('#toggle-fields').show();
219
  } else {
220
  $('#toggle-fields, #users, #exclude-users, #email-formatting, #disable-autop, #current-user, #post-author').show();
221
  $('#user-password-msg').hide();
269
  case 'email-changed':
270
  case 'email-changing':
271
  case 'new-user':
272
+ case 'user-login':
273
+ case 'admin-user-login':
274
  case 'welcome-email':
275
  case 'user-role':
276
  case 'admin-role':
309
  case 'comment':
310
  notification_slug = 'new-comment';
311
  break;
312
+ case 'approve':
313
  notification_slug = 'approve-comment';
314
  break;
315
  case 'moderate':
bnfw.php CHANGED
@@ -1,12 +1,14 @@
1
  <?php
 
2
  /**
3
  * Plugin Name: Better Notifications for WP
4
  * Plugin URI: https://wordpress.org/plugins/bnfw/
5
  * Description: Supercharge your WordPress notifications using a WYSIWYG editor and shortcodes. Default and new notifications available. Add more power with Add-ons.
6
- * Version: 1.8.3
 
 
7
  * Author: Made with Fuel
8
- * Author URI: https://betternotificationsforwp.com/
9
- * Author Email: hello@betternotificationsforwp.com
10
  * License: GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  * Text Domain: bnfw
@@ -165,13 +167,13 @@ class BNFW {
165
  add_action( 'user_register' , array( $this, 'user_register' ) );
166
 
167
  add_action( 'user_register' , array( $this, 'welcome_email' ) );
168
-
169
  if ( is_plugin_active('members/members.php') ) {
170
  add_action( 'profile_update' , array( $this, 'user_role_added' ), 10, 2 );
171
  }else{
172
  add_action( 'set_user_role' , array( $this, 'user_role_changed' ), 10, 3 );
173
  }
174
-
175
  add_action( 'wp_login' , array( $this, 'user_login' ),10,2);
176
 
177
  if ( version_compare( $wp_version, '4.4', '>=' ) ) {
@@ -420,7 +422,7 @@ class BNFW {
420
  }
421
  }
422
 
423
-
424
  /**
425
  * Fires when a post is moved publish to trash.
426
  *
@@ -431,7 +433,7 @@ class BNFW {
431
  }
432
  $post_id = $post->ID;
433
  $post_type = $post->post_type;
434
-
435
  if (BNFW_Notification::POST_TYPE != $post_type) {
436
  $this->send_notification_async('trash-' . $post_type, $post_id);
437
  }
@@ -456,7 +458,7 @@ class BNFW {
456
  }
457
  }
458
 
459
-
460
  /**
461
  * On Media Published.
462
  *
@@ -465,12 +467,12 @@ class BNFW {
465
 
466
  public function new_publish_media_notification( $post_id ) {
467
  $post_type = get_post_type($post_id);
468
-
469
  if (BNFW_Notification::POST_TYPE != $post_type && $post_type == 'attachment') {
470
- $this->send_notification_async( 'new-media', $post_id );
471
  }
472
  }
473
-
474
  /**
475
  * On Media Attachment Data Update.
476
  *
@@ -480,7 +482,7 @@ class BNFW {
480
  public function media_attachment_data_update_notification($post_id ) {
481
  $post_type = get_post_type($post_id);
482
  if (BNFW_Notification::POST_TYPE != $post_type && $post_type == 'attachment') {
483
- $this->send_notification_async( 'update-media', $post_id );
484
  }
485
  }
486
 
@@ -517,11 +519,11 @@ class BNFW {
517
  }
518
 
519
  $post = get_post( $comment->comment_post_ID );
520
-
521
  $notification_type = 'approve-'.$post->post_type.'-comment';
522
 
523
  $this->send_notification( $notification_type, $comment->comment_ID );
524
-
525
  // Send new comment notification after comment approve
526
  $notification_type = 'new-comment'; // old notification name
527
 
@@ -530,7 +532,7 @@ class BNFW {
530
  }
531
 
532
  $this->send_notification( $notification_type, $comment->comment_ID );
533
-
534
  // Send comment reply notification after comment approve.
535
  $this->commentsReply($comment->comment_ID);
536
  }
@@ -556,9 +558,9 @@ class BNFW {
556
  if ( 'post' != $post->post_type ) {
557
  $notification_type = 'comment-' . $post->post_type;
558
  }
559
-
560
  $this->send_notification( $notification_type, $comment_id );
561
-
562
  // comment reply notification.
563
  $this->commentsReply($comment_id);
564
  }
@@ -573,7 +575,7 @@ class BNFW {
573
  public function commentsReply($comment_id) {
574
  $the_comment = get_comment( $comment_id );
575
  $post = get_post( $the_comment->comment_post_ID );
576
-
577
  // comment reply notification.
578
  if ( $this->can_send_comment_notification( $the_comment ) ) {
579
  if ( $the_comment->comment_parent > 0 ) {
@@ -689,6 +691,9 @@ class BNFW {
689
  }
690
  } else {
691
  add_filter( 'wp_mail_content_type', array( $this, 'set_text_content_type' ) );
 
 
 
692
  }
693
  } else {
694
  if ( $this->notifier->notification_exists( 'user-password', false ) ) {
@@ -894,11 +899,11 @@ class BNFW {
894
  public function user_login( $user_name, $user_data ) {
895
  $user_id = $user_data->ID;
896
  $notifications = $this->notifier->get_notifications( 'user-login' );
897
-
898
  foreach ( $notifications as $notification ) {
899
  $this->engine->send_user_login_email( $this->notifier->read_settings( $notification->ID ), get_userdata( $user_id ) );
900
  }
901
-
902
  $this->user_login_admin_notification($user_id);
903
  }
904
 
@@ -910,7 +915,7 @@ class BNFW {
910
  */
911
  public function user_login_admin_notification( $user_id ) {
912
  $notifications = $this->notifier->get_notifications( 'admin-user-login' );
913
-
914
  foreach ( $notifications as $notification ) {
915
  $this->engine->send_user_login_email_for_admin( $this->notifier->read_settings( $notification->ID ), get_userdata( $user_id ) );
916
  }
@@ -1002,14 +1007,14 @@ class BNFW {
1002
  * @param array $old_roles Old User role
1003
  */
1004
  public function user_role_added( $user_id, $old_user_data ) {
1005
-
1006
  if(isset($_POST['members_user_roles']) && !empty($_POST['members_user_roles'])){
1007
  // Get the current user roles.
1008
  $old_roles = (array) $old_user_data->roles;
1009
 
1010
  // Sanitize the posted roles.
1011
  $new_roles = array_map( 'members_sanitize_role', $_POST['members_user_roles'] );
1012
-
1013
  sort($old_roles);
1014
  sort($new_roles);
1015
  $old_roles_str = implode('', $old_roles);
@@ -1052,7 +1057,7 @@ class BNFW {
1052
  }
1053
  }
1054
  }
1055
-
1056
  /**
1057
  * Sanitizes a role name. This is a wrapper for the `sanitize_key()` WordPress function. Only
1058
  * alphanumeric characters and underscores are allowed. Hyphens are also replaced with underscores.
@@ -1148,7 +1153,7 @@ class BNFW {
1148
  $new_content = $this->handle_user_request_notification( $notification_name, $field, $email_data );
1149
  break;
1150
  }
1151
-
1152
  if(!empty($new_content)){
1153
  return $new_content;
1154
  }else{
1
  <?php
2
+
3
  /**
4
  * Plugin Name: Better Notifications for WP
5
  * Plugin URI: https://wordpress.org/plugins/bnfw/
6
  * Description: Supercharge your WordPress notifications using a WYSIWYG editor and shortcodes. Default and new notifications available. Add more power with Add-ons.
7
+ * Version: 1.8.4
8
+ * Requires at least: 4.8
9
+ * Requires PHP: 5.6
10
  * Author: Made with Fuel
11
+ * Author URI: https://madewithfuel.com/
 
12
  * License: GPLv2 or later
13
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
14
  * Text Domain: bnfw
167
  add_action( 'user_register' , array( $this, 'user_register' ) );
168
 
169
  add_action( 'user_register' , array( $this, 'welcome_email' ) );
170
+
171
  if ( is_plugin_active('members/members.php') ) {
172
  add_action( 'profile_update' , array( $this, 'user_role_added' ), 10, 2 );
173
  }else{
174
  add_action( 'set_user_role' , array( $this, 'user_role_changed' ), 10, 3 );
175
  }
176
+
177
  add_action( 'wp_login' , array( $this, 'user_login' ),10,2);
178
 
179
  if ( version_compare( $wp_version, '4.4', '>=' ) ) {
422
  }
423
  }
424
 
425
+
426
  /**
427
  * Fires when a post is moved publish to trash.
428
  *
433
  }
434
  $post_id = $post->ID;
435
  $post_type = $post->post_type;
436
+
437
  if (BNFW_Notification::POST_TYPE != $post_type) {
438
  $this->send_notification_async('trash-' . $post_type, $post_id);
439
  }
458
  }
459
  }
460
 
461
+
462
  /**
463
  * On Media Published.
464
  *
467
 
468
  public function new_publish_media_notification( $post_id ) {
469
  $post_type = get_post_type($post_id);
470
+
471
  if (BNFW_Notification::POST_TYPE != $post_type && $post_type == 'attachment') {
472
+ $this->send_notification_async( 'new-media', $post_id );
473
  }
474
  }
475
+
476
  /**
477
  * On Media Attachment Data Update.
478
  *
482
  public function media_attachment_data_update_notification($post_id ) {
483
  $post_type = get_post_type($post_id);
484
  if (BNFW_Notification::POST_TYPE != $post_type && $post_type == 'attachment') {
485
+ $this->send_notification_async( 'update-media', $post_id );
486
  }
487
  }
488
 
519
  }
520
 
521
  $post = get_post( $comment->comment_post_ID );
522
+
523
  $notification_type = 'approve-'.$post->post_type.'-comment';
524
 
525
  $this->send_notification( $notification_type, $comment->comment_ID );
526
+
527
  // Send new comment notification after comment approve
528
  $notification_type = 'new-comment'; // old notification name
529
 
532
  }
533
 
534
  $this->send_notification( $notification_type, $comment->comment_ID );
535
+
536
  // Send comment reply notification after comment approve.
537
  $this->commentsReply($comment->comment_ID);
538
  }
558
  if ( 'post' != $post->post_type ) {
559
  $notification_type = 'comment-' . $post->post_type;
560
  }
561
+
562
  $this->send_notification( $notification_type, $comment_id );
563
+
564
  // comment reply notification.
565
  $this->commentsReply($comment_id);
566
  }
575
  public function commentsReply($comment_id) {
576
  $the_comment = get_comment( $comment_id );
577
  $post = get_post( $the_comment->comment_post_ID );
578
+
579
  // comment reply notification.
580
  if ( $this->can_send_comment_notification( $the_comment ) ) {
581
  if ( $the_comment->comment_parent > 0 ) {
691
  }
692
  } else {
693
  add_filter( 'wp_mail_content_type', array( $this, 'set_text_content_type' ) );
694
+ if('text' == $setting['email-formatting'] ){
695
+ $message = strip_tags($message);
696
+ }
697
  }
698
  } else {
699
  if ( $this->notifier->notification_exists( 'user-password', false ) ) {
899
  public function user_login( $user_name, $user_data ) {
900
  $user_id = $user_data->ID;
901
  $notifications = $this->notifier->get_notifications( 'user-login' );
902
+
903
  foreach ( $notifications as $notification ) {
904
  $this->engine->send_user_login_email( $this->notifier->read_settings( $notification->ID ), get_userdata( $user_id ) );
905
  }
906
+
907
  $this->user_login_admin_notification($user_id);
908
  }
909
 
915
  */
916
  public function user_login_admin_notification( $user_id ) {
917
  $notifications = $this->notifier->get_notifications( 'admin-user-login' );
918
+
919
  foreach ( $notifications as $notification ) {
920
  $this->engine->send_user_login_email_for_admin( $this->notifier->read_settings( $notification->ID ), get_userdata( $user_id ) );
921
  }
1007
  * @param array $old_roles Old User role
1008
  */
1009
  public function user_role_added( $user_id, $old_user_data ) {
1010
+
1011
  if(isset($_POST['members_user_roles']) && !empty($_POST['members_user_roles'])){
1012
  // Get the current user roles.
1013
  $old_roles = (array) $old_user_data->roles;
1014
 
1015
  // Sanitize the posted roles.
1016
  $new_roles = array_map( 'members_sanitize_role', $_POST['members_user_roles'] );
1017
+
1018
  sort($old_roles);
1019
  sort($new_roles);
1020
  $old_roles_str = implode('', $old_roles);
1057
  }
1058
  }
1059
  }
1060
+
1061
  /**
1062
  * Sanitizes a role name. This is a wrapper for the `sanitize_key()` WordPress function. Only
1063
  * alphanumeric characters and underscores are allowed. Hyphens are also replaced with underscores.
1153
  $new_content = $this->handle_user_request_notification( $notification_name, $field, $email_data );
1154
  break;
1155
  }
1156
+
1157
  if(!empty($new_content)){
1158
  return $new_content;
1159
  }else{
includes/admin/class-bnfw-notification.php CHANGED
@@ -70,7 +70,7 @@ class BNFW_Notification {
70
  'show_ui' => true,
71
  'show_in_menu' => true,
72
  'menu_icon' => 'dashicons-email-alt',
73
- 'menu_position' => 100,
74
  'rewrite' => false,
75
  'map_meta_cap' => false,
76
  'capabilities' => array(
@@ -750,10 +750,16 @@ foreach ( $taxs as $tax ) {
750
  if ( ! current_user_can( 'bnfw' ) ) {
751
  return;
752
  }
 
 
 
 
 
 
753
 
754
  $setting = array(
755
  'notification' => sanitize_text_field( $_POST['notification'] ),
756
- 'subject' => sanitize_text_field( $_POST['subject'] ),
757
  'message' => $_POST['notification_message'],
758
  'disabled' => isset( $_POST['disabled'] ) ? sanitize_text_field( $_POST['disabled'] ) : 'false',
759
  'email-formatting' => isset( $_POST['email-formatting'] ) ? sanitize_text_field( $_POST['email-formatting'] ) : 'html',
70
  'show_ui' => true,
71
  'show_in_menu' => true,
72
  'menu_icon' => 'dashicons-email-alt',
73
+ 'menu_position' => 101,
74
  'rewrite' => false,
75
  'map_meta_cap' => false,
76
  'capabilities' => array(
750
  if ( ! current_user_can( 'bnfw' ) ) {
751
  return;
752
  }
753
+
754
+ if ( isset( $_POST['digest-interval'] ) && 'no' != $_POST['digest-interval']) {
755
+ $subject = $_POST['subject'];
756
+ }else{
757
+ $subject = sanitize_text_field( $_POST['subject'] );
758
+ }
759
 
760
  $setting = array(
761
  'notification' => sanitize_text_field( $_POST['notification'] ),
762
+ 'subject' => $subject,
763
  'message' => $_POST['notification_message'],
764
  'disabled' => isset( $_POST['disabled'] ) ? sanitize_text_field( $_POST['disabled'] ) : 'false',
765
  'email-formatting' => isset( $_POST['email-formatting'] ) ? sanitize_text_field( $_POST['email-formatting'] ) : 'html',
includes/engine/class-bnfw-engine.php CHANGED
@@ -1,1470 +1,1550 @@
1
  <?php
 
2
  /**
3
  * BNFW Engine
4
  *
5
  * @since 1.0
6
  */
7
-
8
  class BNFW_Engine {
9
 
10
- /**
11
- * Send test email.
12
- *
13
- * @since 1.2
14
- *
15
- * @param array $setting
16
- */
17
- public function send_test_email( $setting ) {
18
- $subject = __( 'Test Email:', 'bnfw' ) . ' ' . $setting['subject'];
19
- $message = '<p><strong>' . __( 'This is a test email. All shortcodes below will show in place but not be replaced with content.', 'bnfw' ) . '</strong></p>' . stripslashes( $setting['message'] );
20
-
21
- if ( 'true' != $setting['disable-autop'] && 'html' == $setting['email-formatting'] ) {
22
- $message = wpautop( $message );
23
- }
24
-
25
- $current_user = wp_get_current_user();
26
- $email = $current_user->user_email;
27
-
28
- $headers = array();
29
- if ( 'html' == $setting['email-formatting'] ) {
30
- $headers[] = 'Content-type: text/html';
31
- $message = apply_filters( 'bnfw_test_email_message', $message, $setting );
32
- }
33
-
34
- wp_mail( $email, stripslashes( $subject ), $message, $headers );
35
- }
36
-
37
- /**
38
- * Send the notification email.
39
- *
40
- * @since 1.0
41
- * @param array $setting
42
- * @param int $id
43
- */
44
- public function send_notification( $setting, $id ) {
45
- /**
46
- * BNFW - Whether notification is disabled?
47
- *
48
- * @since 1.3.6
49
- */
50
- $notification_disabled = apply_filters( 'bnfw_notification_disabled', ( 'true' === $setting['disabled'] ), $id, $setting );
51
-
52
- if ( ! $notification_disabled ) {
53
- $subject = $this->handle_shortcodes( $setting['subject'], $setting['notification'], $id );
54
- $message = $this->handle_shortcodes( $setting['message'], $setting['notification'], $id );
55
- $emails = $this->get_emails( $setting, $id );
56
- $headers = $this->get_headers( $emails );
57
-
58
- if ( 'true' != $setting['disable-autop'] && 'html' == $setting['email-formatting'] ) {
59
- $message = wpautop( $message );
60
- }
61
-
62
- if ( 'html' == $setting['email-formatting'] ) {
63
- $headers[] = 'Content-type: text/html';
64
- $message = apply_filters( 'bnfw_notification_message', $message, $setting );
65
- } else {
66
- $headers[] = 'Content-type: text/plain';
67
- }
68
-
69
- $emails = apply_filters( 'bnfw_emails', $emails, $setting, $id );
70
-
71
- $send = apply_filters( 'bnfw_can_send_email', true, $setting, $emails, $subject, $message, $headers );
72
-
73
- if ( ! $send ) {
74
- return;
75
- }
76
-
77
- if ( isset( $emails['to'] ) && is_array( $emails['to'] ) ) {
78
- foreach ( $emails['to'] as $email ) {
79
- wp_mail( $email, stripslashes( $this->handle_global_user_shortcodes( $subject, $email ) ), $this->handle_global_user_shortcodes( $message, $email ), $headers );
80
- }
81
- }
82
- }
83
- }
84
-
85
- /**
86
- * Send new user registration notification email.
87
- *
88
- * @since 1.1
89
- * @param array $setting Notification setting
90
- * @param object $user User object
91
- * @param string $password_url Plain text password in WP < 4.3 and password url in WP > 4.3
92
- */
93
- public function send_registration_email( $setting, $user, $password_url = '' ) {
94
- /**
95
- * Whether to trigger welcome email notification or not.
96
- *
97
- * @since 1.7
98
- */
99
- $trigger_notification = apply_filters( 'bnfw_trigger_welcome-email_notification', true, $setting, $user );
100
-
101
- if ( ! $trigger_notification ) {
102
- return;
103
- }
104
-
105
- $user_id = $user->ID;
106
-
107
- $subject = $this->handle_shortcodes( $setting['subject'], $setting['notification'], $user_id );
108
- $message = $this->handle_shortcodes( $setting['message'], $setting['notification'], $user_id );
109
-
110
- $subject = str_replace( '[password]', $password_url, $subject );
111
- $message = str_replace( '[password]', $password_url, $message );
112
-
113
- $subject = str_replace( '[password_url]', $password_url, $subject );
114
- $message = str_replace( '[password_url]', $password_url, $message );
115
-
116
- $subject = str_replace( '[login_url]', wp_login_url(), $subject );
117
- $message = str_replace( '[login_url]', wp_login_url(), $message );
118
-
119
- if ( 'true' != $setting['disable-autop'] && 'html' == $setting['email-formatting'] ) {
120
- $message = wpautop( $message );
121
- }
122
-
123
- $headers = array();
124
- if ( 'html' == $setting['email-formatting'] ) {
125
- $headers[] = 'Content-type: text/html';
126
- $message = apply_filters( 'bnfw_registration_email_message', $message, $setting );
127
- }
128
-
129
- $subject = $this->handle_global_user_shortcodes( $subject, $user->user_email );
130
- $message = $this->handle_global_user_shortcodes( $message, $user->user_email );
131
- wp_mail( $user->user_email, stripslashes( $subject ), $message, $headers );
132
- }
133
-
134
- /**
135
- * Send user login notification email.
136
- *
137
- * @since 1.1
138
- * @param array $setting Notification setting
139
- * @param object $user User object
140
- */
141
- public function send_user_login_email( $setting, $user) {
142
-
143
- $trigger_notification = apply_filters( 'bnfw_trigger_user-login_notification', true, $setting, $user );
144
-
145
- if ( ! $trigger_notification ) {
146
- return;
147
- }
148
-
149
- $user_id = $user->ID;
150
-
151
- $subject = $this->handle_shortcodes( $setting['subject'], $setting['notification'], $user_id );
152
- $message = $this->handle_shortcodes( $setting['message'], $setting['notification'], $user_id );
153
- $emails = $this->get_emails( $setting, $user_id );
154
- $headers = $this->get_headers( $emails );
155
-
156
- if ( 'true' != $setting['disable-autop'] && 'html' == $setting['email-formatting'] ) {
157
- $message = wpautop( $message );
158
- }
159
-
160
- if ( 'html' == $setting['email-formatting'] ) {
161
- $headers[] = 'Content-type: text/html';
162
- $message = apply_filters( 'bnfw_notification_message', $message, $setting );
163
- }
164
-
165
- $subject = $this->handle_global_user_shortcodes( $subject, $user->user_email );
166
- $message = $this->handle_global_user_shortcodes( $message, $user->user_email );
167
-
168
- wp_mail( $user->user_email, stripslashes( $subject ), $message, $headers );
169
- }
170
-
171
-
172
- /**
173
- * Send user login notification email for admin.
174
- *
175
- * @since 1.1
176
- * @param array $setting Notification setting
177
- * @param object $user User object
178
- */
179
- public function send_user_login_email_for_admin( $setting, $user) {
180
-
181
- $trigger_notification = apply_filters( 'bnfw_trigger_user-login_notification', true, $setting, $user );
182
-
183
- if ( ! $trigger_notification ) {
184
- return;
185
- }
186
- $user_id = $user->ID;
187
-
188
- $this->send_notification($setting,$user_id);
189
- }
190
-
191
- /**
192
- * Send comment reply notification email.
193
- *
194
- * @since 1.3
195
- * @param array $setting Notification setting
196
- * @param object $comment Comment object
197
- * @param object $parent_comment Parent comment object
198
- */
199
- public function send_comment_reply_email( $setting, $comment, $parent_comment ) {
200
- $comment_id = $comment->comment_ID;
201
-
202
- /**
203
- * BNFW - Whether notification is disabled?
204
- *
205
- * @since 1.3.6
206
- */
207
- $notification_disabled = apply_filters( 'bnfw_notification_disabled', false, $comment_id, $setting );
208
-
209
- if ( ! $notification_disabled ) {
210
- $subject = $this->handle_shortcodes( $setting['subject'], $setting['notification'], $comment_id );
211
- $message = $this->handle_shortcodes( $setting['message'], $setting['notification'], $comment_id );
212
-
213
- $headers = array();
214
- if ( 'html' == $setting['email-formatting'] ) {
215
- $headers[] = 'Content-type: text/html';
216
- }
217
-
218
- if ( 'true' != $setting['disable-autop'] && 'html' == $setting['email-formatting'] ) {
219
- $message = wpautop( $message );
220
- $message = apply_filters( 'bnfw_comment_reply_email_message', $message, $setting );
221
- }
222
-
223
- $subject = $this->handle_global_user_shortcodes( $subject, $parent_comment->comment_author_email );
224
- $message = $this->handle_global_user_shortcodes( $message, $parent_comment->comment_author_email );
225
- wp_mail( $parent_comment->comment_author_email, stripslashes( $subject ), $message, $headers );
226
- }
227
- }
228
-
229
- /**
230
- * Send user role changed email.
231
- *
232
- * @since 1.3.9
233
- *
234
- * @param array $setting Notification setting
235
- * @param int $user_id User ID
236
- * @param array $old_role Old User Role.
237
- * @param array $new_role New User Role.
238
- */
239
- public function send_user_role_changed_email( $setting, $user_id, $old_role, $new_role ) {
240
- $subject = $this->handle_shortcodes( $setting['subject'], $setting['notification'], $user_id );
241
- $message = $this->handle_shortcodes( $setting['message'], $setting['notification'], $user_id );
242
-
243
- $subject = $this->handle_user_role_shortcodes( $subject, $old_role, $new_role );
244
- $message = $this->handle_user_role_shortcodes( $message, $old_role, $new_role );
245
-
246
- $headers = array();
247
- if ( 'true' != $setting['disable-autop'] && 'html' == $setting['email-formatting'] ) {
248
- $message = wpautop( $message );
249
- }
250
-
251
- if ( 'html' == $setting['email-formatting'] ) {
252
- $headers[] = 'Content-type: text/html';
253
- $message = apply_filters( 'bnfw_user_role_changed_email_message', $message, $setting );
254
- }
255
-
256
- $user = get_user_by( 'id', $user_id );
257
-
258
- $subject = $this->handle_global_user_shortcodes( $subject, $user->user_email );
259
- $message = $this->handle_global_user_shortcodes( $message, $user->user_email );
260
- wp_mail( $user->user_email, stripslashes( $subject ), $message, $headers );
261
- }
262
-
263
- /**
264
- * Send user role added support User Role Editor by Members Plugin.
265
- *
266
- * @since 1.3.9
267
- *
268
- * @param array $setting Notification setting
269
- * @param int $user_id User ID
270
- * @param array $old_role Old User Role.
271
- * @param array $new_role New User Role.
272
- */
273
- public function send_user_role_added_email( $setting, $user_id, $old_role, $new_role ) {
274
- $subject = $this->handle_shortcodes( $setting['subject'], $setting['notification'], $user_id );
275
- $message = $this->handle_shortcodes( $setting['message'], $setting['notification'], $user_id );
276
-
277
- $subject = $this->handle_user_added_role_shortcodes( $subject, $old_role, $new_role );
278
- $message = $this->handle_user_added_role_shortcodes( $message, $old_role, $new_role );
279
-
280
- $headers = array();
281
- if ( 'true' != $setting['disable-autop'] && 'html' == $setting['email-formatting'] ) {
282
- $message = wpautop( $message );
283
- }
284
-
285
- if ( 'html' == $setting['email-formatting'] ) {
286
- $headers[] = 'Content-type: text/html';
287
- $message = apply_filters( 'bnfw_user_role_changed_email_message', $message, $setting );
288
- }
289
-
290
- $user = get_user_by( 'id', $user_id );
291
-
292
- $subject = $this->handle_global_user_shortcodes( $subject, $user->user_email );
293
- $message = $this->handle_global_user_shortcodes( $message, $user->user_email );
294
- wp_mail( $user->user_email, stripslashes( $subject ), $message, $headers );
295
- }
296
-
297
- /**
298
- * Handle User Role shortcodes.
299
- *
300
- * @param string $message String that needs shortcode processing.
301
- * @param array $old_role Old User Role.
302
- * @param array $new_role New User Role.
303
- *
304
- * @return string Processed string.
305
- */
306
- public function handle_user_role_shortcodes( $message, $old_role, $new_role ) {
307
- $roles = wp_roles();
308
-
309
- $old_role_name = '';
310
- $new_role_name = '';
311
-
312
- if ( isset( $roles->role_names[ $old_role ] ) ) {
313
- $old_role_name = $roles->role_names[ $old_role ];
314
- }
315
-
316
- if ( isset( $roles->role_names[ $new_role ] ) ) {
317
- $new_role_name = $roles->role_names[ $new_role ];
318
- }
319
-
320
- $message = str_replace( '[user_role_old]', $old_role_name, $message );
321
- $message = str_replace( '[user_role_new]', $new_role_name, $message );
322
-
323
- return $message;
324
- }
325
-
326
- /**
327
- * Handle User Added Role shortcodes.
328
- *
329
- * @param string $message String that needs shortcode processing.
330
- * @param array $old_role Old User Role.
331
- * @param array $new_role New User Role.
332
- *
333
- * @return string Processed string.
334
- */
335
- public function handle_user_added_role_shortcodes( $message, $old_roles, $new_roles ) {
336
- $roles = wp_roles();
337
-
338
- $old_role_name = array();
339
- $new_role_name = array();
340
-
341
- foreach ($old_roles as $key => $old_role) {
342
- if ( isset( $roles->role_names[ $old_role ] ) ) {
343
- $old_role_name[] = $roles->role_names[ $old_role ];