Better Notifications for WordPress - Version 1.9.1

Version Description

  • 20th September 2022 =
  • Fixed: A fatal error was shown when using PHP 7 and sending admin notifications.
  • Fixed: Notifications weren't being sent out when using a shortcode in the Send To field when using the Send to Any Email add-on.
Download this release

Release Info

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

Code changes from version 1.9 to 1.9.1

README.txt CHANGED
@@ -1,761 +1,765 @@
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: 6.0.2
7
- Requires PHP: 7.1
8
- Stable tag: 1.9
9
- License: GPLv2 or later
10
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
- Update URI: https://wordpress.org/plugins/bnfw/
12
-
13
- Supercharge your WordPress email notifications using a WYSIWYG editor and shortcodes. Default and new notifications available. Increase power with Add-ons.
14
-
15
- == Description ==
16
-
17
- 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.
18
-
19
- Here's a quick walkthrough of the plugin in action:
20
- [youtube https://www.youtube.com/watch?v=MxPUyRZPJ1Q]
21
-
22
- = An Example: =
23
- 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.
24
-
25
- > A handy list of shortcodes you can use is available [here](https://betternotificationsforwp.com/documentation/notifications/shortcodes/ "Shortcodes for use in Better Notifications for WP").
26
-
27
- = Premium Add-ons =
28
- Power-up your notifications using add-ons:
29
-
30
- [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.
31
-
32
- [Subscriptions (GDPR)](https://betternotificationsforwp.com/downloads/subscriptions-gdpr/) - Allow users to manage their subscriptions for BNFW notifications.
33
- If you want to let users create their own email notifications, check out my other plugin: [Content Notify](https://contentnotify.com).
34
-
35
- [Conditional Notifications](https://betternotificationsforwp.com/downloads/conditional-notifications/) - Limit certain notifications depending on which categories, tags, post formats, or terms you choose.
36
-
37
- [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/).
38
-
39
- [Send to Any Email](https://betternotificationsforwp.com/downloads/send-to-any-email/) - Send notifications to non-WordPress Users.
40
-
41
- [Digest](https://betternotificationsforwp.com/downloads/digest/) - Group multiple notifications into a single digest notification.
42
-
43
- [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.
44
-
45
- [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.
46
-
47
- [Multisite](https://betternotificationsforwp.com/downloads/multisite/) - Adds new notifications and shortcodes for WordPress Multisite to Better Notifications for WP.
48
-
49
- [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.
50
-
51
- ...and more coming soon!
52
-
53
- = Notifications =
54
- The notifications that are currently available to use are:
55
-
56
- **Admin**
57
-
58
- * New User Registration - For Admin
59
- * User Lost Password - For Admin
60
- * Password Changed - For Admin
61
- * User Email Changed - For Admin
62
- * User Role Changed - For Admin
63
- * User Logged In - For Admin
64
- * WordPress Core Automatic Background Updates
65
- * Privacy – Confirm Action: Export Data Request – For Admin
66
- * Privacy – Confirm Action: Erase Data Request – For Admin
67
-
68
- **Transactional**
69
-
70
- * New User Registration - For User
71
- * New User - Post-registration Email
72
- * User Lost Password - For User
73
- * Password Changed - For User
74
- * User Email Changed Confirmation - For User
75
- * User Email Changed - For User
76
- * User Role Changed - For User
77
- * User Logged In - For User
78
- * Comment Reply
79
- * Privacy – Confirm Action: Export Data Request – For User
80
- * Privacy – Confirm Action: Erase Data Request – For User
81
- * Privacy – Data Export – For User
82
- * Privacy – Data Erased – For User
83
- * Profile Builder – Approval Request for Admin ([Profile Builder Add-on](https://betternotificationsforwp.com/downloads/profile-builder/))
84
- * Profile Builder – Email Confirmation ([Profile Builder Add-on](https://betternotificationsforwp.com/downloads/profile-builder/))
85
- * Profile Builder – Account Approved ([Profile Builder Add-on](https://betternotificationsforwp.com/downloads/profile-builder/))
86
- * Profile Builder – Account Unapproved ([Profile Builder Add-on](https://betternotificationsforwp.com/downloads/profile-builder/))
87
- * User Login Reminder ([Reminders Add-on](https://betternotificationsforwp.com/downloads/custom-fields/))
88
-
89
- **Posts / Custom Post Types**
90
-
91
- * New Post Published
92
- * Post Updated
93
- * Post Pending Review
94
- * New Private Post
95
- * Post Scheduled
96
- * Published Post Moved to Trash
97
- * New Comment
98
- * New Comment Awaiting Moderation
99
- * Post - Comment Approved
100
- * Post - Custom Field Updated ([Custom Fields Add-on](https://betternotificationsforwp.com/downloads/custom-fields/))
101
- * Post - Update Reminder ([Reminders Add-on](https://betternotificationsforwp.com/downloads/update-reminder/))
102
- * New Trackback
103
- * New Pingback
104
-
105
- **Pages**
106
-
107
- * New Page Published
108
- * Page Updated
109
- * Page Pending Review
110
- * New Private Page
111
- * Page Scheduled
112
- * Page - New Comment
113
- * Page - New Comment Awaiting Moderation
114
- * Page - Comment Approved
115
- * Page - Comment Reply
116
- * Page - Custom Field Updated ([Custom Fields Add-on](https://betternotificationsforwp.com/downloads/custom-fields/))
117
- * Page - Update Reminder ([Reminders Add-on](https://betternotificationsforwp.com/downloads/update-reminder/))
118
-
119
- **Media**
120
-
121
- * New Media Published
122
- * Media Updated
123
- * Media - New Comment
124
- * Media - New Comment Awaiting Moderation
125
- * Media - Comment Approved
126
- * Media - Comment Reply
127
-
128
- **Posts**
129
-
130
- * New Category
131
- * New Tag
132
-
133
- **Custom Post Types**
134
-
135
- * New Term
136
-
137
- **Multisite ([Multisite Add-on](https://betternotificationsforwp.com/downloads/multisite/))**
138
-
139
- * New Site Activated or Created - For Network Admin
140
- * New User Created - For Network Admin
141
- * Network Admin Email Change Attempted - For New Network Admin
142
- * Network Admin Email Changed - For Old Network Admin
143
- * New Site Activated or Created - For Site Admin
144
- * Site Deleted - For Site Admin
145
- * Site Admin Email Change Attempted - For New Site Admin
146
- * Site Admin Email Changed - For Old Site Admin
147
- * New Site Activated - For User
148
- * New User Created - For User
149
- * New User Invited to Site - For User
150
-
151
- 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.
152
-
153
- If you want to let users create their own email notifications, check out my other plugin: [Content Notify](https://contentnotify.com).
154
-
155
- > 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.
156
-
157
- > DISCLAIMER
158
- > 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.
159
-
160
-
161
-
162
- == Installation ==
163
-
164
- 1. Upload the 'bnfw' plugin folder to the '/wp-content/plugins/' directory or install it via your WordPress Admin.
165
- 2. Activate the plugin through the 'Plugins' menu in WordPress.
166
- 3. Use the settings in the new 'Notifications' Menu item in the sidebar to configure the plugin.
167
- 4. (Optional) Read our article on [how to improve email delivery in WordPress](https://betternotificationsforwp.com/guides/how-to-improve-email-delivery-wordpress/).
168
- 5. Test by creating a notification with some [shortcodes](https://betternotificationsforwp.com/documentation/notifications/shortcodes/ "Shortcodes for use in Better Notifications for WP").
169
-
170
-
171
-
172
- == Frequently Asked Questions ==
173
-
174
- > Full Documentation for BNFW can be found [here](https://betternotificationsforwp.com/documentation/ "Documentation for Better Notifications for WP").
175
-
176
- = Is this plugin compatible with the new Block Editor (Gutenberg) in WordPress 5? =
177
-
178
- 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.
179
-
180
- = What are shortcodes? Where can I use them in this plugin? =
181
-
182
- 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.
183
-
184
- Shortcodes can be used in the 'Subject' and 'Message Body' of your notifications, except for a select few (due to a restriction in WordPress).
185
-
186
- > A handy list of shortcodes you can use is available [here](https://betternotificationsforwp.com/documentation/notifications/shortcodes/ "Shortcodes for use in Better Notifications for WP").
187
-
188
- = What are some scenarios this plugin could be used for? =
189
-
190
- * Outreach: A blog/news site with hundreds of subscribers and want to use it to alert them of new blog posts.
191
- * Communication: A small, internal WordPress site and use it to alert staff of new posts or comments.
192
- * Monitor: A website for an awesome new product or service and use it for notifications of pingbacks and trackbacks.
193
- * Security: To receive alerts of password reset requests and their corresponding user.
194
-
195
- The possibilities are endless!
196
-
197
- = Does this plugin work with anti-spam plugins, such as Akismet? =
198
-
199
- Yes! There is an option for suppressing comments marked as SPAM in the plugin settings.
200
-
201
- = Does this plugin and the add-ons work with Multisite? =
202
-
203
- 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/).
204
-
205
- = Can users create their own email notifications? =
206
-
207
- Not using BNFW. If you want to let users create their own email notifications, check out my other plugin: [Content Notify](https://contentnotify.com).
208
-
209
- = Notifications aren't coming through! =
210
-
211
- 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.
212
-
213
- 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.
214
-
215
- 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.
216
-
217
- = Some of my shortcodes aren't working! =
218
-
219
- 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 `[]`.
220
-
221
- = Other emails from WordPress / other plugins are being messed up! =
222
-
223
- 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.
224
-
225
- = Custom Post Type 'X' isn't showing in the list of available custom post types =
226
-
227
- 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.
228
-
229
- = Can I translate this plugin? =
230
-
231
- 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.
232
-
233
-
234
-
235
- == Screenshots ==
236
-
237
- 1. All Notifications
238
-
239
- 2. Add New / Edit Notification
240
-
241
-
242
-
243
- == Changelog ==
244
-
245
- = 1.9 - 6th September 2022 =
246
- * This is large bug fix and minor feature release whilst I gear up for the 2.0 release of the plugin which will feature a UI/UX overhaul.
247
- * New: Notifications - You can now send notification when posts/pages/custom post types/media items are sent to the Trash.
248
- * New: Shortcodes - You can now use `[password_url_raw]` and `[login_url_raw]` in the 'New User Registration - For User' notification to output these URLs as plain text (without the link wrapped around them).
249
- * New: Shortcode - `[user_ip_address]` can be used in any notification that supports the `[user_]` shortcode group and will show the IP address of the user who triggered the notification.
250
- * Added: The `email_user` and `user_` shortcodes are now available to use in the 'User Email Changed Confirmation - For User' notification.
251
- * Added: Support for the 'Send To' field in the 'User Login Reminder' notification (part of the [Reminders add-on](https://betternotificationsforwp.com/downloads/update-reminder/) and [Conditional Notifications](https://betternotificationsforwp.com/downloads/conditional-notifications/)).
252
- * Improved: Full PHP 8.0 compatibility.
253
- * Improved: The 'New Comment' notifications now work with the `wp_new_comment`, `wp_insert_comment`, and `rest_insert_comment` hooks.
254
- * Fixed: All BNFW screens are now translated using the language the user has set as opposed to the site language.
255
- * Fixed: The 'New Private Post' notification wasn't being triggered.
256
- * Fixed: 'Email Changed' notifications were sending in plain text instead of HTML, where set.
257
- * Fixed: PHP Fatal Error when sending notifications to new users who are assigned multiple user roles (props to @intuitart for the fix).
258
- * Fixed: PHP Fatal Error when disabling multiple notifications at the same time.
259
- * Fixed: PHP Notice showing on the User Profile screen when the [Subscriptions add-on](https://betternotificationsforwp.com/downloads/subscriptions-gdpr/) was enabled.
260
- * Fixed: Notifications weren't always showing their 'Notification Type' on the 'All Notifications' screen.
261
-
262
- = 1.8.11 - 15th February 2022 =
263
- * Fixed: An issue where add-on licenses couldn't be saved.
264
- * Fixed: Some HTML characters were being encoded when added through the Text part of the notification editor.
265
- * Improved: Further improvements to plugin structure, data sanitisation, and validation.
266
-
267
- = 1.8.10 - 8th February 2022 =
268
- * Fixed: A fatal error when sending an email address changed notification.
269
-
270
- = 1.8.9 - 8th February 2022 =
271
- * Fixed: HTML formatting wasn't being applied to notifications since WordPress 5.9.
272
- * Fixed: Searching/selecting users on smaller sites was not rendering any results.
273
- * Improved: Better compatibility with WordPress coding standards.
274
- * Improved: Further improvements to plugin structure, data sanitisation, and validation.
275
-
276
- = 1.8.8 - 4th February 2022 =
277
- * Improved: Select2 library is now included with the plugin instead of being loaded from CDN.
278
- * Improved: Various changes relating to plugin structure, data sanitisation, and validation.
279
-
280
- = 1.8.7 - 27th January 2022 =
281
- * IMPORTANT! It is recommended that you update this plugin to the latest version.
282
- * Fixed: A security issue affecting select2 fields when searching for a user or user role.
283
-
284
- = 1.8.6 - 26th April 2021 =
285
- * Fixed: Post Author and Update Author shortcodes now work as expected again following an issue introduced in WordPress 5.7.
286
- * Fixed: User Lost Password notifications now work correctly if users only log in with their email address.
287
- * Removed: `<div>` tags were being added when using the Insert Default Content button on a notification.
288
- * Updated: persist-admin-noticed-dismissal 3rd party library to latest version.
289
- * Updated: EDD_SL_Plugin_Updater is now at the latest version for add-ons.
290
-
291
- = 1.8.5 - 18th December 2020 =
292
- * New: Shortcode - [user_old_email] and [user_new_email] can now be used in 'User Email Changed - For User' and 'User Email Changed - For Admin' notifications.
293
- * Fixed: 'User Role Changed' notifications weren't being sent out when editing users using bulk edit when plugins that allowed multiple user roles were being used.
294
- * Fixed: Numerous issues with Privacy notifications, including emails not sending and shortcodes not working.
295
- * Fixed: Conditional Notifications fields were showing on incorrect notifications if that add-on was being used.
296
- * Fixed: POT file regenerated to account for missing translatable strings.
297
- * Have a Merry Christmas and a happy New Year. Thanks for using BNFW :)
298
-
299
- = 1.8.4 - 12th August 2020 =
300
- * Fixed: In certain situations, the password reset key would get modified when using the User Lost Password - For User notification.
301
- * 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.
302
- * Improved: Compatibility with the latest version of the [Digest add-on](https://betternotificationsforwp.com/downloads/digest/).
303
- * Improved: Compatibility with the latest version of the [Multisite add-on](https://betternotificationsforwp.com/downloads/multisite/).
304
-
305
- = 1.8.3 - 1st June 2020 =
306
- * 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.
307
- * Added: Compatibility with the 1.2 release of the [Custom Fields add-on](https://betternotificationsforwp.com/downloads/custom-fields/).
308
-
309
- = 1.8.2 - 14th May 2020 =
310
- * Fixed: Email addresses stored in custom fields weren't being used in Comment notifications when the Custom Fields add-on was installed.
311
- * Fixed: Two PHP notices showing above the subscriptions form when the Subscriptions add-on was installed.
312
- * Fixed: 'The User Lost Password - For User' notification wasn't outputting shortcodes in the message subject.
313
- * Fixed: 'The User Lost Password - For User' notification had an incorrect shortcode when inserting the default email content.
314
-
315
- = 1.8.1 - 21st April 2020 =
316
- * Added: Core changes to allow the [Global Override add-on](https://betternotificationsforwp.com/downloads/per-post-override/) to only send out notifications once.
317
- * Fixed: A range of issues relating to the [Global Override add-on](https://betternotificationsforwp.com/downloads/per-post-override/).
318
-
319
- = 1.8 - 8th April 2020 =
320
- * 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.
321
- * New: A huge overhaul of the comment notifications which now gives a great comment management workflow.
322
- * 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.
323
- * 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.
324
-
325
- = 1.7.7 - 27th March 2020 =
326
- * New: Three new notifications! "New Media Published", "Media Updated", "Media Comment" - complete with new shortcodes for caption, alt text, dimensions, etc.
327
- * New: "User Logged In - For Admin" notification - sends a notification to the admin when users log in.
328
- * New: "User Logged In - For User" notification - sends a notification to the user when they log in.
329
- * New: "Published to Trash" notification - sends a notification when a published post is moved to the trash.
330
- * Improved: Support for plugins that allow users to be assigned to multiple user roles.
331
-
332
- = 1.7.6 - 30th January 2020 =
333
- * New Notification: New Comment Approved. This is sent after the comment has been approved.
334
- * 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.
335
- * 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)).
336
- * Added: `$update` as 3rd parameter to `bnfw_trigger_insert_post` filter.
337
- * Added: Additional translatable strings.
338
- * 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.
339
- * Fixed: Advanced Custom Fields (ACF) was triggering incorrect notifications when post/page/custom post types were submitted via a front-end form.
340
- * Fixed: The `[post_excerpt]` shortcode now conforms to the `excerpt_length` filter.
341
- * Fixed: Post Pending Review notifications were being sent in duplicate in certain situations.
342
- * Fixed: Added an additional check to ensure a Multisite doesn't crash when BNFW is enabled on a site with no Administrator users.
343
- * Fixed: Multisite notifications were showing the HTMl/Text options for notifications that could only support text.
344
-
345
- = 1.7.5 - 23rd September 2019 =
346
- * Added: Support for the new [Digest add-on](https://betternotificationsforwp.com/downloads/digest/)!
347
- * Added: Support for some big changes coming to the [Custom Fields add-on](https://betternotificationsforwp.com/downloads/custom-fields/).
348
- * Added: New Spanish translation.
349
- * Fixed: An issue relating to shortcodes in the [Multisite add-on](https://betternotificationsforwp.com/downloads/multisite/).
350
- * Fixed: Any 'Privacy' notifications are now hiding options that can't be overridden.
351
- * Fixed: Disabling automatic paragraphs on the 'User Lost Password - For User' notification wasn't working.
352
-
353
- = 1.7.4 - 19th August 2019 =
354
- * New: You can now filter the mail headers in BNFW using `bnfw_mail_headers`. More details [here](https://betternotificationsforwp.com/documentation/actions-and-filters/).
355
- * Added: Better support for the new Block Editor (Gutenberg) and all post/page/custom post type notifications. More and better support coming soon.
356
- * Added: Support for the upcoming [Digest add-on](https://betternotificationsforwp.com/downloads/digest/).
357
- * Fixed: The 'New User Registration - For Admin' notification was sending out the default WordPress notification as well as the BNFW notification in some cases.
358
- * Fixed: The 'New Comment - Awaiting Moderation' notification was missing from the [Global Override add-on](https://betternotificationsforwp.com/downloads/per-post-override/).
359
- * Fixed: A fatal error which occasionally occurred when a user changes their password on the front-end.
360
-
361
- = 1.7.3 - 10th April 2019 =
362
- * 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.
363
- * 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.
364
- * 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.
365
- * 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.
366
- * 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.
367
- * 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.
368
- * Fixed: The 'Send this Notification to the Author' checkbox was missing from the 'New Comment' notification.
369
- * 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.
370
- * Fixed: The `[edit_post]` shortcode was escaping ampersands in the URL.
371
-
372
- = 1.7.2 - 21st November 2018 =
373
- * 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.
374
- * Fixed: New Comment Awaiting Moderation notifications weren't being sent to the Post Author, where selected.
375
-
376
- = 1.7.1 - 5th November 2018 =
377
- * New: Full support for the new [Subscriptions (GDPR)](https://betternotificationsforwp.com/downloads/subscriptions-gdpr/) add-on.
378
- * Fixed: Comments marked as SPAM were triggering the 'New Comment Awaiting Moderation' notification.
379
- * 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.
380
- * Fixed: A couple of minor javascript errors relating to BNFW add-ons.
381
-
382
- = 1.7 - 5th September 2018 =
383
- * A huge update packed full of new features and bug fixes, especially for those that like privacy and comment notifications!
384
- * 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.
385
- * 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.
386
- * New: Shortcode - `[user_role]`. This outputs the user's role (or roles if assigned to more than one).
387
- * New: Shortcode - `[first_image]`. Outputs the URL of the first image in a post/page/custom post.
388
- * New: Shortcode - `[post_type_archive]`. Outputs the link for the post type / custom post type archive page.
389
- * 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.
390
- * New: Shortcode - `[comment_moderation_link]`. This outputs the link to the WP Admin where you can moderate a new comment.
391
- * New: Shortcode - `[comment_parent_content]`. This outputs the content of the parent comment when used in a Comment Reply notification.
392
- * New: Three Comment Moderation Shortcodes - `[comment_moderation_approve]`, `[comment_moderation_spam]`, `[comment_moderation_delete]`. All for new comments. All should be self-explanatory.
393
- * New: A new column is available in the 'All Notifications' screen that shows which users are excluded from a notification.
394
- * Added: Dutch translation (props Piet).
395
- * 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.
396
- * Updated: Some of the default content that can be quickly added to a default notification was out-of-date.
397
- * 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.
398
- * 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.
399
- * Fixed: The `[edit_post]` shortcode wasn't outputting anything when a non-Editor role could post on the front-end.
400
- * Fixed: Email addresses beginning with numbers weren't being saved when used in conjunction with the Send to Any Email add-on.
401
- * Fixed: The SVG icon on WordPress.org wasn't exported correctly.
402
-
403
- = 1.6.14 - 25th May 2018 =
404
- * 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.
405
- * 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).
406
- * 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.
407
- * New: A list of available actions and filters in BNFW is now available in the [website documentation](https://betternotificationsforwp.com/documentation/actions-and-filters/).
408
- * 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.
409
- * Fixed: Media inserted via the WYSIWYG editor wasn't showing. This should now be fixed.
410
- * Fixed: An issue where the `[post_term taxonomy="X"]` shortcode could only be used once in a notification.
411
- * Fixed: All date shortcodes are now translatable.
412
-
413
- = 1.6.13 - 5th April 2018 =
414
- * Added: Full support for the new [Multisite](https://betternotificationsforwp.com/downloads/multisite/) add-on.
415
- * Fixed: Multisite-only - the user_id was being used instead of the username in the login URL in the Lost Password - For User notification.
416
- * Fixed: Multisite-only - the New User Registration - For User notification wasn't working at all.
417
- * 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.
418
- * Fixed: Some user shortcodes were only being outputted for the first user in a user role.
419
- * Fixed: An occasional issue where some notifications weren't appearing for custom post types.
420
-
421
- = 1.6.12 - 1st March 2018 =
422
- * 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.
423
- * Added: Preliminary changes for the upcoming [Multisite](https://betternotificationsforwp.com/downloads/multisite/) add-on.
424
-
425
- = 1.6.11 - 13th February 2018 =
426
- * Fixed: Update Reminder and Custom Field Updated notifications weren't showing for custom post types.
427
-
428
- = 1.6.10 - 31st January 2018 =
429
- * 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.
430
- * 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.
431
- * 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.
432
- * 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.
433
- * 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)).
434
- * 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.
435
- * Improved: All date related shortcodes now output in the date and time format set in Settings > General in the WordPress Admin.
436
- * Improved: The list of available notifications has been re-ordered to make more sense.
437
- * Improved: A warning will now show if the total user count in the Send To box is more than 200 users.
438
- * Improved: Usage tracking will now only load on single sites and not on sites that are part of a Multisite network.
439
- * Updated: Usage tracking SDK updated to the latest version.
440
- * Fixed: Warnings were showing when posting a new comment on the front-end.
441
-
442
- = 1.6.9 - 7th December 2017 =
443
- * Merry Christmas & Happy New Year!
444
- * New: Support for new [Profile Builder Add-on](https://betternotificationsforwp.com/downloads/profile-builder/).
445
- * Fixed: An issue where the YouTube video wasn't showing properly on the BNFW WP.org plugin page.
446
-
447
- = 1.6.8 - 23rd November 2017 =
448
- * 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.
449
- * Added: A minimum PHP version of 5.6 is now required to run BNFW.
450
- * Fixed: Compatibility with the [Reminders](https://betternotificationsforwp.com/downloads/update-reminder/) and [Conditional Notifications](https://betternotificationsforwp.com/downloads/conditional-notifications/) add-ons.
451
- * 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/).
452
-
453
- = 1.6.7 - 10th August 2017 =
454
- * New: Shortcode - `[current_time]` Will output the current time as per the settings in WordPress > Settings.
455
- * New: Shortcode - `[current_date]` Will output the current date as per the settings in WordPress > Settings.
456
- * New: Shortcode - `[admin_email]` Adds the email address of the main site admin as per the settings in WordPress > Settings.
457
- * Fixed: BNFW now respects the post status of posts submitted via ACF's front-end forms (acf_form).
458
- * Fixed: Privately Published posts that are updated now trigger the 'Post Updated' notification.
459
- * Changed: The opt-in for plugin tracking in BNFW has changed. You may be asked to opt-in / opt-out when updating the plugin.
460
-
461
- = 1.6.6 - 28th June 2017 =
462
- * Fixed: New Comments on Custom Post Types weren't always sending notifications.
463
- * Fixed: An issue where using the `bnfw_trigger_insert_post()` filter wasn't always working correctly.
464
- * Fixed: An issue where checking a notification was disabled wasn't always working correctly.
465
- * 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/).
466
- * Added: Support for huge logic enhancements to the soon to be updated [Global Override add-on](https://betternotificationsforwp.com/downloads/per-post-override/).
467
- * Added: Support for the new 'User Login Reminder' notification in the soon to be updated [Reminders add-on](https://betternotificationsforwp.com/downloads/update-reminder/).
468
-
469
- = 1.6.5 - 18th May 2017 =
470
- * New: ACF Form compatibility has now been re-added! Props to @elliotcondon for the help.
471
- * 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.
472
-
473
- = 1.6.4 - 18th April 2017 =
474
- * New: You can now use `[global_user_username]` in any notification to output the recipient's username.
475
- * 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.
476
- * Improved: Clearer labelling on new custom post type notifications.
477
- * 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.
478
- * Fixed: The 'Send To' select box was being overlayed by the dropdown that shows when clicking in the box.
479
- * Fixed: Searching for a user when a site has more than 200 users in the 'Send To' box now works as expected.
480
-
481
- = 1.6.3 - 13th March 2017 =
482
- * Added: Support for the new [Send to Any Email add-on](https://betternotificationsforwp.com/downloads/send-to-any-email/).
483
- * Added: Support for Advanced Custom Field (ACF) front-end forms. Finally!
484
- * Updated: French translation (props @matcho).
485
- * Improved: The 'Lost Password' notifications now begin with 'User Lost Password' to make them easier to understand.
486
- * Fixed: The 'Reply To' fields weren't saving correctly.
487
- * Fixed: Ensure post shortcodes are rendered before sending (props @cliffpaulick).
488
- * Fixed: A minor issue with the custom field selection box when using the [Custom Fields add-on](https://betternotificationsforwp.com/downloads/custom-fields/).
489
-
490
- = 1.6.2 - 17th February 2017 =
491
- * Fixed: The 'Shortcode Help' button wasn't working correctly for some of the new notifications.
492
-
493
- = 1.6.1 - 17th February 2017 =
494
- * New & Improved: The 'Password Changed - For User', 'Password Changed - For Admin', and 'User Email Changed - For User' notifications have now been fully implemented.
495
- * New: You can now use `[post_term taxonomy="TAXONOMY_NAME"]` to output the term(s) from the chosen taxonomy.
496
- * Improved: Any anti-SPAM plugin should now work with BNFW, not just Akismet.
497
- * 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.
498
- * Fixed: The Global User Shortcodes weren't outputting anything when used in the 'User Email Changed - For User' notification.
499
- Fixed: When a 'Lost Password For User' notification had been set-up but disabled, it wasn't disabling the default WordPress notification.
500
- * Fixed: The 'WordPress Core Automatic Background Updates' notification wasn't working at all.
501
- * Fixed: The Global User Shortcodes were being output incorrectly in test emails.
502
- * Fixed: The `[featured_image]` shortcode was outputting the shortcode name as opposed to a blank when no featured image is set.
503
- * Fixed: A number of warnings and notices relating to the 'Lost Password' notifications when on WordPress's Lost Password screen.
504
- * Fixed: The 'Add-on Licenses' screen was displaying HTML characters where there shouldn't be any.
505
- * Fixed: An error was occurring when triggering notifications when used in conjunction with the latest version of the Custom Fields add-on.
506
- * Fixed: Some language translation strings were incorrect.
507
- * Updated: EDD_SL_Plugin_Updater is now at the latest version for add-ons.
508
-
509
- = 1.6 - 12th December 2016 =
510
- * Merry Christmas & Happy New Year!
511
- * 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.
512
- * New: Notifications for privately published posts / pages / custom post types.
513
- * New: Notification and accompanying shortcode for customising WordPress Core Automatic Background Updates (Success / Fail / Critical).
514
- * New: Notification for User Password Changed.
515
- * New: Notification for User Email Changed - For User.
516
- * New: Shortcodes for showing the old and new user role when used in conjunction with the User Role Changed notifications.
517
- * New: You can now add a 'Reply To' name and email address in the Additional Email Fields for all notifications that support it.
518
- * 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'.
519
- * New: All transactional notifications can now be set to either HTML or Plain Text.
520
- * Improved: Better compatibility with [Theme My Login](https://en-gb.wordpress.org/plugins/theme-my-login/).
521
- * 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".
522
- * Improved: Compatibility with Mashshare.
523
- * Fixed: Global User Shortcodes weren't being outputted correctly in the 'Lost Password - For User' notification.
524
- * Fixed: Child themes weren't being registered correctly in the filter when using the front-end forms filter.
525
- * Fixed: The number of options within notifications was being limited to the number of blog posts WordPress was set to show.
526
- * Fixed: The 'Shortcode Help' button wasn't linking to the BNFW website correctly for some BNFW add-ons.
527
-
528
- = 1.5.3 - 13th September 2016 =
529
- * Fixed: User Roles in the 'User Roles / Users' admin column were being displayed only in lowercase.
530
- * Fixed: The `[wp_capabilities]` shortcode wasn't outputting properly. It now displays the higher-level capabilities that the user has.
531
-
532
- = 1.5.2 - 6th September 2016 =
533
- * Fixed: Custom User Roles were showing 0 users in the 'To' field.
534
- * Added: Generic CSS classes to BNFW admin.
535
- * Updated: German Translation to show English in certain places where translation text breaks the WP Admin UI (props @helmi).
536
- * Full code review and submission to WordPress VIP!
537
-
538
- = 1.5.1 - 5th August 2016 =
539
- * Fixed: 'Text' mode in the WYSIWYG editor didn't show any buttons when the BNFW Per-post Override Add-on was activated.
540
-
541
- = 1.5 - 25th July 2016 =
542
- * 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]`).
543
- * 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]`).
544
- * 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.
545
- * New: Shortcode `[featured_image]`. Outputs the URL for the featured image (if one is available).
546
- * New: Shortcode `[user_avatar]`. Outputs the User's avatar when used in a capable notification.
547
- * New: Shortcode `[commenter_avatar]`. Outputs the comment author's avatar for comment-based notifications.
548
- * Improved: 'Comment Reply' notifications are now available to use for Pages and Custom Post Types.
549
- * Improved: When sending notifications to user roles in the 'To' field, it will now show how many users are in that role.
550
- * 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.
551
-
552
- = 1.4.1 - 3rd June 2016 =
553
- * 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.
554
- * Fixed: The 'User Role Changed' notification was broken after the update to WordPress 4.5.
555
- * 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.
556
- * Fixed: User shortcodes for new comments on custom post types weren't being outputted properly.
557
- * Fixed: The 'Notifications' BNFW menu item in the Sidebar in the WordPress Admin was showing for non-admins.
558
- * Added: German Translation (props Michael Schröttle).
559
-
560
- = 1.4 - 8th April 2016 =
561
- * New: Shortcode `[post_slug]`. Output the post slug.
562
- * New: Shortcode `[edit_post]`. Outputs the link to edit the post / page / custom post.
563
- * New: Shortcode `[post_parent_permalink]`. Outputs a permalink to the post / page / custom post's parent item.
564
- * New: Shortcode `[author_link]`. Outputs a link to the post / page / custom post's author archive.
565
- * New: You can now add the collection of User Shortcodes to the 'Lost Password - For User' email.
566
- * 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.
567
- * 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.
568
- * 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.
569
- * 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.
570
- * Improved: 'New Comment / Awaiting Moderation', 'New Trackback', and 'New Pingback' notifications now show the 'Send this notification to the Author only' checkbox.
571
- * Improved: If a notification is present but disabled, the default WordPress notification (if there is one), will not be sent.
572
- * Fixed: New Post Published notifications weren't being sent if you had the Per-post Override add-on installed.
573
-
574
- = 1.3.9.5 - 26th February 2016 =
575
- * Fixed: New Post Published notifications were triggering multiple times due to `auto_draft_to_publish`.
576
-
577
- = 1.3.9.4 - 15th February 2016 =
578
- * Filter improvements for the new [Per-post Override add-on](https://betternotificationsforwp.com/downloads/per-post-override/).
579
-
580
- = 1.3.9.3 - 12th February 2016 =
581
- * 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.
582
- * 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.
583
-
584
- = 1.3.9.2 - 29th January 2016 =
585
- * 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!
586
- * 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.
587
- * Fixed: 'User Role Changed' notifications were being triggered for new users.
588
- * Fixed: The label for custom taxonomies was showing in the Notification select box even if you didn't have any.
589
- * Fixed: A warning was showing when no 'CC' or 'BCC' details were added but the 'Name' and 'From' details were specified.
590
- * Fixed: A warning was showing after a taxonomy was deleted but a notification existed for it.
591
- * Fixed: Replaced select2 v4 script for full version for better compatibility with other plugins.
592
- * Fixed: The javascript in the plugin is now translatable.
593
- * Added: French translation - props Mygale06.
594
-
595
- = 1.3.9.1 - 9th January 2016 =
596
- * Fixed: Missing shortcode link for new 'User Role Changed' notification.
597
- * Fixed: Duplicate 'User Role Changed' listing in the Notification select box.
598
-
599
- = 1.3.9 - 9th January 2016 =
600
- * Happy New Year!
601
- * New: Transactional notification for when a User Role Changed. This is sent to the user when their User Role is changed.
602
- * Fixed: Ensure that at least one User or User Role is selected before saving a notification.
603
- * Fixed: select2 v4 update and compatibility with Ultimate Member and ACF Pro.
604
-
605
- = 1.3.8 - 16th December 2015 =
606
- * Fixed: Notifications weren't being sent out at all. After lots of testing, I think this should now be resolved.
607
- * Fixed: An issue where quotes in the Subject field were causing part of/all the field content to be removed.
608
- * 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.
609
-
610
- = 1.3.7 - 11th December 2015 =
611
- * Fixed: An issue where EDD_SL_Plugin_Updater class was already declared by another plugin.
612
-
613
- = 1.3.6 - 11th December 2015 =
614
- * Merry Christmas to you all!
615
- * New: Password Reset notifications can now be in HTML or Plain Text.
616
- * 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.
617
- * Updated: select2.js library updated to v4.
618
- * Fixed: Compatibility with password reset notifications in WordPress 4.1.0 and below.
619
- * Fixed: An issue where the 'Tag' label was showing incorrectly in the 'All Notifications' screen.
620
- * 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.
621
-
622
- = 1.3.5 - 9th October 2015 =
623
- * 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.
624
- * Fixed: An issue where the 'disabled wpautop' checkbox was appearing on transactional emails.
625
- * Fixed: Some labels in the 'All Notifications' screen weren't formatted correctly.
626
- * 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.
627
-
628
- = 1.3.4 - 2nd October 2015 =
629
- * 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.
630
- * New: You can now add images to your notifications using the 'Add Media' button above the WYSIWYG editor.
631
- * New: Portuguese Brazil translation for v1.3.3 (props Glayton Caixeta).
632
- * New: BNFW now has it's own [website](https://betternotificationsforwp.com/)!
633
- * New: Buttons have been added linking to the Documentation and Shortcode Help sections of the website next to the WYSIWYG editor.
634
- * 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).
635
- * New: Added a video overview of BNFW showing it's features and functionality to the main plugin page and website.
636
- * Fixed: The 'New User Registration - For User' now works again after WordPress 4.3 broke it.
637
- * Fixed: HTML using quotes was being escaped in emails.
638
- * Fixed: The 'Settings' sidebar menu item wasn't highlighting properly.
639
- * I also added all previous release dates to this changelog.
640
- * 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).
641
-
642
- = 1.3.3 - 22nd August 2015 =
643
- * New: You can now send a notification to the Post Author only, where a notification supports it.
644
- * 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.
645
- * New: Support for WordPress 4.3.
646
- * New: Pending posts that are changed to Published now trigger the 'New Post / Page Notification'.
647
- * 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').
648
- * Improved: Swapped the green tick for a dashicons tick for a slightly more speedier, native-feeling plugin.
649
- * Improved: Reduced the flash of hidden elements when loading the New / Edit Notification screen.
650
- * 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.
651
- * Fixed: Some output was being showed when WP_DEBUG was enabled.
652
- * Fixed: Removed the 'slug' field when enabled from Screen Options.
653
-
654
- = 1.3.2 - 20th July 2015 =
655
- * Fixed: Replaced a deprecated function which might cause a warning to show when `WP_DEBUG` was enabled.
656
-
657
- = 1.3.1 - 18th July 2015 =
658
- * Fixed: The P2 theme wasn't triggering new post or comment notifications.
659
- * Fixed: Sometimes the shortcode help link at the bottom of the notification editor wouldn't link to the help page properly.
660
-
661
- = 1.3 - 2nd July 2015 =
662
- * New: Option to disable notifications going to the user that triggered them.
663
- * 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).
664
- * New: New Shortcode: Update Author. Use `[post_update_author]` in any Post or Page notifications to see which user updated the post.
665
- * New: Choose between sending the notification as plain text or HTML.
666
- * 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.
667
- * Improved: The 'New User Registration' (For Admin & User) and 'Welcome Email' notifications now allow you to use all of the 'User' shortcodes.
668
- * Fixed: Formatting in emails sent from other plugins were being effected by BNFW.
669
- * Fixed: Notifications for Categories, Terms and Tags weren't getting triggered.
670
- * 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).
671
- * Fixed: Additional Email fields were being shown for transactional notifications that couldn't use them.
672
-
673
- = 1.2 - 19th May 2015 =
674
- * New: WYSIWYG Editor for notifications!
675
- * New: From Name, From Email, CC and BCC options are now available to use for each notification!
676
- * 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.
677
- * Improved: The User Role / Users drop down box has been unified for simplicity.
678
- * Fixed: Lost Password (For User) notifications were being sent in plain text.
679
- * Fixed: Not all custom post types were showing when setting up a new notification.
680
- * Fixed: Notifications for New Terms not generating notification emails.
681
- * Fixed: Custom Taxonomies missing from columns in the All Notifications screen.
682
- * Fixed: Added a space after lists of tags, categories, and terms.
683
- * Thank you again for all of your support, feedback, and awesome reviews. You people make WordPress great!
684
-
685
- = 1.1.5.3 - 21st April 2015 =
686
- * Compatibility with WordPress 4.2.
687
-
688
- = 1.1.5.2 - 15th April 2015 =
689
- * Fixed: Custom Post Type Pending Posts not being sent.
690
- * Fixed: Post excerpt not outputting anything.
691
- * Removed: `[closedpostboxes_page], [rich_editing], and [admin_color]` as was a bit defunct and causing issues.
692
- * Changed: `[post_author]` now outputs the display name instead of the author ID.
693
- * Improved: Clarity of custom post type and taxonomy labels.
694
-
695
- = 1.1.5.1 - 13th April 2015 =
696
- * Fix for Custom Post Type notifications not populating shortcodes.
697
- * Fix for Custom Taxonomy terms not sending out notification emails.
698
-
699
- = 1.1.5 - 10th April 2015 =
700
- * New Shortcode: [permalink].
701
- * New Notifications: 'Scheduled Posts' and 'Scheduled Pages'.
702
- * New Shortcodes for the above Notifications: [post_scheduled_date] and [post_scheduled_date_gmt].
703
- * New Notification: 'New Page Published'.
704
- * New Notification: 'Page 'Updated'.
705
- * New Notification: 'Page Pending Review'.
706
- * New Notification: 'New Page - Comment'.
707
- * Fixed: A few bugs reported via the forums and some others that i've found - thanks everyone!
708
-
709
- = 1.1 - 16th March 2015 =
710
- * Lots of cool new stuff and more to come soon!
711
- * Transactional notifications (notifications intended only for the end user) have been added as a new group in the notifications select box.
712
- * New Notification: Post Pending Review (for all post types).
713
- * New Notification: New User Registration (Transactional).
714
- * New Notification: Password Reset (Transactional).
715
- * New Notification: New User Welcome Email (Transactional).
716
- * Added an option to enable or disable each notification.
717
- * Better support for custom taxonomies and terms.
718
- * Fixed: A few PHP warnings were showing when using `WP_DEBUG`.
719
- * Fixed: HTML tags being stripped from `[post_content]` and `[comment_content]`.
720
- * Removed: Some WordPress Multisite shortcodes that didn't work properly. Proper support for Multisite will come later.
721
- * 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.
722
-
723
- = 1.0.2 - 17th January 2015 =
724
- * Bug fix for `[ID]` shortcode not outputting anything.
725
- * Bug fix for `[post_category]` showing as empty.
726
- * Added tags shortcode for use in certain notifications using `[post_tag]`.
727
-
728
- = 1.0.1 - 21th December 2014 =
729
- * Bug fix for notifications not being sent to custom user roles or individual users of custom roles.
730
- * Added a 'Notification Type' column to the notifications screen.
731
- * Renamed 'User Roles' column in notifications screen to 'User Roles/Users'.
732
-
733
- = 1.0 - 17th December 2014 =
734
- * First major release - we're no longer in beta!
735
- * Total overhaul. The plugin has been completely re-written.
736
- * Auto-importer: Your old notifications will be imported when updating the plugin.
737
- * New 'Generator' for easily creating and editing your notifications.
738
- * More options and notification types as per feedback via the forums - thanks everyone!
739
- * Granular control over choosing either user roles or individual users you'd like to send a notification to.
740
- * Fully translatable.
741
- * Loads of bugfixes and improvements.
742
-
743
- = 0.2.1 beta - 4th June 2013 =
744
- * Minor Bugfixes
745
-
746
- = 0.2 beta - 8th April 2013 =
747
- * Added an option to suppress SPAM comment notifications.
748
-
749
- = 0.1 beta - 25th March 2013 =
750
- * Initial version of the plugin.
751
- * Settings page for configuring notification types for roles.
752
- * Email Templates page for customising emails using HTML and shortcodes.
753
-
754
-
755
-
756
- == Upgrade Notice ==
757
-
758
- = Migrating from 0.2.1 to 1.0 =
759
-
760
- Version 1 features an auto-importer which should migrate all of your notifications from any previous versions of the plugin to 1.0.
761
- 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: 6.0.2
7
+ Requires PHP: 7.1
8
+ Stable tag: 1.9.1
9
+ License: GPLv2 or later
10
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
+ Update URI: https://wordpress.org/plugins/bnfw/
12
+
13
+ Supercharge your WordPress email notifications using a WYSIWYG editor and shortcodes. Default and new notifications available. Increase power with Add-ons.
14
+
15
+ == Description ==
16
+
17
+ 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.
18
+
19
+ Here's a quick walkthrough of the plugin in action:
20
+ [youtube https://www.youtube.com/watch?v=MxPUyRZPJ1Q]
21
+
22
+ = An Example: =
23
+ 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.
24
+
25
+ > A handy list of shortcodes you can use is available [here](https://betternotificationsforwp.com/documentation/notifications/shortcodes/ "Shortcodes for use in Better Notifications for WP").
26
+
27
+ = Premium Add-ons =
28
+ Power-up your notifications using add-ons:
29
+
30
+ [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.
31
+
32
+ [Subscriptions (GDPR)](https://betternotificationsforwp.com/downloads/subscriptions-gdpr/) - Allow users to manage their subscriptions for BNFW notifications.
33
+ If you want to let users create their own email notifications, check out my other plugin: [Content Notify](https://contentnotify.com).
34
+
35
+ [Conditional Notifications](https://betternotificationsforwp.com/downloads/conditional-notifications/) - Limit certain notifications depending on which categories, tags, post formats, or terms you choose.
36
+
37
+ [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/).
38
+
39
+ [Send to Any Email](https://betternotificationsforwp.com/downloads/send-to-any-email/) - Send notifications to non-WordPress Users.
40
+
41
+ [Digest](https://betternotificationsforwp.com/downloads/digest/) - Group multiple notifications into a single digest notification.
42
+
43
+ [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.
44
+
45
+ [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.
46
+
47
+ [Multisite](https://betternotificationsforwp.com/downloads/multisite/) - Adds new notifications and shortcodes for WordPress Multisite to Better Notifications for WP.
48
+
49
+ [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.
50
+
51
+ ...and more coming soon!
52
+
53
+ = Notifications =
54
+ The notifications that are currently available to use are:
55
+
56
+ **Admin**
57
+
58
+ * New User Registration - For Admin
59
+ * User Lost Password - For Admin
60
+ * Password Changed - For Admin
61
+ * User Email Changed - For Admin
62
+ * User Role Changed - For Admin
63
+ * User Logged In - For Admin
64
+ * WordPress Core Automatic Background Updates
65
+ * Privacy – Confirm Action: Export Data Request – For Admin
66
+ * Privacy – Confirm Action: Erase Data Request – For Admin
67
+
68
+ **Transactional**
69
+
70
+ * New User Registration - For User
71
+ * New User - Post-registration Email
72
+ * User Lost Password - For User
73
+ * Password Changed - For User
74
+ * User Email Changed Confirmation - For User
75
+ * User Email Changed - For User
76
+ * User Role Changed - For User
77
+ * User Logged In - For User
78
+ * Comment Reply
79
+ * Privacy – Confirm Action: Export Data Request – For User
80
+ * Privacy – Confirm Action: Erase Data Request – For User
81
+ * Privacy – Data Export – For User
82
+ * Privacy – Data Erased – For User
83
+ * Profile Builder – Approval Request for Admin ([Profile Builder Add-on](https://betternotificationsforwp.com/downloads/profile-builder/))
84
+ * Profile Builder – Email Confirmation ([Profile Builder Add-on](https://betternotificationsforwp.com/downloads/profile-builder/))
85
+ * Profile Builder – Account Approved ([Profile Builder Add-on](https://betternotificationsforwp.com/downloads/profile-builder/))
86
+ * Profile Builder – Account Unapproved ([Profile Builder Add-on](https://betternotificationsforwp.com/downloads/profile-builder/))
87
+ * User Login Reminder ([Reminders Add-on](https://betternotificationsforwp.com/downloads/custom-fields/))
88
+
89
+ **Posts / Custom Post Types**
90
+
91
+ * New Post Published
92
+ * Post Updated
93
+ * Post Pending Review
94
+ * New Private Post
95
+ * Post Scheduled
96
+ * Published Post Moved to Trash
97
+ * New Comment
98
+ * New Comment Awaiting Moderation
99
+ * Post - Comment Approved
100
+ * Post - Custom Field Updated ([Custom Fields Add-on](https://betternotificationsforwp.com/downloads/custom-fields/))
101
+ * Post - Update Reminder ([Reminders Add-on](https://betternotificationsforwp.com/downloads/update-reminder/))
102
+ * New Trackback
103
+ * New Pingback
104
+
105
+ **Pages**
106
+
107
+ * New Page Published
108
+ * Page Updated
109
+ * Page Pending Review
110
+ * New Private Page
111
+ * Page Scheduled
112
+ * Page - New Comment
113
+ * Page - New Comment Awaiting Moderation
114
+ * Page - Comment Approved
115
+ * Page - Comment Reply
116
+ * Page - Custom Field Updated ([Custom Fields Add-on](https://betternotificationsforwp.com/downloads/custom-fields/))
117
+ * Page - Update Reminder ([Reminders Add-on](https://betternotificationsforwp.com/downloads/update-reminder/))
118
+
119
+ **Media**
120
+
121
+ * New Media Published
122
+ * Media Updated
123
+ * Media - New Comment
124
+ * Media - New Comment Awaiting Moderation
125
+ * Media - Comment Approved
126
+ * Media - Comment Reply
127
+
128
+ **Posts**
129
+
130
+ * New Category
131
+ * New Tag
132
+
133
+ **Custom Post Types**
134
+
135
+ * New Term
136
+
137
+ **Multisite ([Multisite Add-on](https://betternotificationsforwp.com/downloads/multisite/))**
138
+
139
+ * New Site Activated or Created - For Network Admin
140
+ * New User Created - For Network Admin
141
+ * Network Admin Email Change Attempted - For New Network Admin
142
+ * Network Admin Email Changed - For Old Network Admin
143
+ * New Site Activated or Created - For Site Admin
144
+ * Site Deleted - For Site Admin
145
+ * Site Admin Email Change Attempted - For New Site Admin
146
+ * Site Admin Email Changed - For Old Site Admin
147
+ * New Site Activated - For User
148
+ * New User Created - For User
149
+ * New User Invited to Site - For User
150
+
151
+ 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.
152
+
153
+ If you want to let users create their own email notifications, check out my other plugin: [Content Notify](https://contentnotify.com).
154
+
155
+ > 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.
156
+
157
+ > DISCLAIMER
158
+ > 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.
159
+
160
+
161
+
162
+ == Installation ==
163
+
164
+ 1. Upload the 'bnfw' plugin folder to the '/wp-content/plugins/' directory or install it via your WordPress Admin.
165
+ 2. Activate the plugin through the 'Plugins' menu in WordPress.
166
+ 3. Use the settings in the new 'Notifications' Menu item in the sidebar to configure the plugin.
167
+ 4. (Optional) Read our article on [how to improve email delivery in WordPress](https://betternotificationsforwp.com/guides/how-to-improve-email-delivery-wordpress/).
168
+ 5. Test by creating a notification with some [shortcodes](https://betternotificationsforwp.com/documentation/notifications/shortcodes/ "Shortcodes for use in Better Notifications for WP").
169
+
170
+
171
+
172
+ == Frequently Asked Questions ==
173
+
174
+ > Full Documentation for BNFW can be found [here](https://betternotificationsforwp.com/documentation/ "Documentation for Better Notifications for WP").
175
+
176
+ = Is this plugin compatible with the new Block Editor (Gutenberg) in WordPress 5? =
177
+
178
+ 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.
179
+
180
+ = What are shortcodes? Where can I use them in this plugin? =
181
+
182
+ 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.
183
+
184
+ Shortcodes can be used in the 'Subject' and 'Message Body' of your notifications, except for a select few (due to a restriction in WordPress).
185
+
186
+ > A handy list of shortcodes you can use is available [here](https://betternotificationsforwp.com/documentation/notifications/shortcodes/ "Shortcodes for use in Better Notifications for WP").
187
+
188
+ = What are some scenarios this plugin could be used for? =
189
+
190
+ * Outreach: A blog/news site with hundreds of subscribers and want to use it to alert them of new blog posts.
191
+ * Communication: A small, internal WordPress site and use it to alert staff of new posts or comments.
192
+ * Monitor: A website for an awesome new product or service and use it for notifications of pingbacks and trackbacks.
193
+ * Security: To receive alerts of password reset requests and their corresponding user.
194
+
195
+ The possibilities are endless!
196
+
197
+ = Does this plugin work with anti-spam plugins, such as Akismet? =
198
+
199
+ Yes! There is an option for suppressing comments marked as SPAM in the plugin settings.
200
+
201
+ = Does this plugin and the add-ons work with Multisite? =
202
+
203
+ 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/).
204
+
205
+ = Can users create their own email notifications? =
206
+
207
+ Not using BNFW. If you want to let users create their own email notifications, check out my other plugin: [Content Notify](https://contentnotify.com).
208
+
209
+ = Notifications aren't coming through! =
210
+
211
+ 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.
212
+
213
+ 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.
214
+
215
+ 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.
216
+
217
+ = Some of my shortcodes aren't working! =
218
+
219
+ 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 `[]`.
220
+
221
+ = Other emails from WordPress / other plugins are being messed up! =
222
+
223
+ 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.
224
+
225
+ = Custom Post Type 'X' isn't showing in the list of available custom post types =
226
+
227
+ 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.
228
+
229
+ = Can I translate this plugin? =
230
+
231
+ 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.
232
+
233
+
234
+
235
+ == Screenshots ==
236
+
237
+ 1. All Notifications
238
+
239
+ 2. Add New / Edit Notification
240
+
241
+
242
+
243
+ == Changelog ==
244
+
245
+ = 1.9.1 - 20th September 2022 =
246
+ * Fixed: A fatal error was shown when using PHP 7 and sending admin notifications.
247
+ * Fixed: Notifications weren't being sent out when using a shortcode in the Send To field when using the [Send to Any Email add-on](https://betternotificationsforwp.com/downloads/send-to-any-email/).
248
+
249
+ = 1.9 - 6th September 2022 =
250
+ * This is large bug fix and minor feature release whilst I gear up for the 2.0 release of the plugin which will feature a UI/UX overhaul.
251
+ * New: Notifications - You can now send notification when posts/pages/custom post types/media items are sent to the Trash.
252
+ * New: Shortcodes - You can now use `[password_url_raw]` and `[login_url_raw]` in the 'New User Registration - For User' notification to output these URLs as plain text (without the link wrapped around them).
253
+ * New: Shortcode - `[user_ip_address]` can be used in any notification that supports the `[user_]` shortcode group and will show the IP address of the user who triggered the notification.
254
+ * Added: The `email_user` and `user_` shortcodes are now available to use in the 'User Email Changed Confirmation - For User' notification.
255
+ * Added: Support for the 'Send To' field in the 'User Login Reminder' notification (part of the [Reminders add-on](https://betternotificationsforwp.com/downloads/update-reminder/) and [Conditional Notifications](https://betternotificationsforwp.com/downloads/conditional-notifications/)).
256
+ * Improved: Full PHP 8.0 compatibility.
257
+ * Improved: The 'New Comment' notifications now work with the `wp_new_comment`, `wp_insert_comment`, and `rest_insert_comment` hooks.
258
+ * Fixed: All BNFW screens are now translated using the language the user has set as opposed to the site language.
259
+ * Fixed: The 'New Private Post' notification wasn't being triggered.
260
+ * Fixed: 'Email Changed' notifications were sending in plain text instead of HTML, where set.
261
+ * Fixed: PHP Fatal Error when sending notifications to new users who are assigned multiple user roles (props to @intuitart for the fix).
262
+ * Fixed: PHP Fatal Error when disabling multiple notifications at the same time.
263
+ * Fixed: PHP Notice showing on the User Profile screen when the [Subscriptions add-on](https://betternotificationsforwp.com/downloads/subscriptions-gdpr/) was enabled.
264
+ * Fixed: Notifications weren't always showing their 'Notification Type' on the 'All Notifications' screen.
265
+
266
+ = 1.8.11 - 15th February 2022 =
267
+ * Fixed: An issue where add-on licenses couldn't be saved.
268
+ * Fixed: Some HTML characters were being encoded when added through the Text part of the notification editor.
269
+ * Improved: Further improvements to plugin structure, data sanitisation, and validation.
270
+
271
+ = 1.8.10 - 8th February 2022 =
272
+ * Fixed: A fatal error when sending an email address changed notification.
273
+
274
+ = 1.8.9 - 8th February 2022 =
275
+ * Fixed: HTML formatting wasn't being applied to notifications since WordPress 5.9.
276
+ * Fixed: Searching/selecting users on smaller sites was not rendering any results.
277
+ * Improved: Better compatibility with WordPress coding standards.
278
+ * Improved: Further improvements to plugin structure, data sanitisation, and validation.
279
+
280
+ = 1.8.8 - 4th February 2022 =
281
+ * Improved: Select2 library is now included with the plugin instead of being loaded from CDN.
282
+ * Improved: Various changes relating to plugin structure, data sanitisation, and validation.
283
+
284
+ = 1.8.7 - 27th January 2022 =
285
+ * IMPORTANT! It is recommended that you update this plugin to the latest version.
286
+ * Fixed: A security issue affecting select2 fields when searching for a user or user role.
287
+
288
+ = 1.8.6 - 26th April 2021 =
289
+ * Fixed: Post Author and Update Author shortcodes now work as expected again following an issue introduced in WordPress 5.7.
290
+ * Fixed: User Lost Password notifications now work correctly if users only log in with their email address.
291
+ * Removed: `<div>` tags were being added when using the Insert Default Content button on a notification.
292
+ * Updated: persist-admin-noticed-dismissal 3rd party library to latest version.
293
+ * Updated: EDD_SL_Plugin_Updater is now at the latest version for add-ons.
294
+
295
+ = 1.8.5 - 18th December 2020 =
296
+ * New: Shortcode - [user_old_email] and [user_new_email] can now be used in 'User Email Changed - For User' and 'User Email Changed - For Admin' notifications.
297
+ * Fixed: 'User Role Changed' notifications weren't being sent out when editing users using bulk edit when plugins that allowed multiple user roles were being used.
298
+ * Fixed: Numerous issues with Privacy notifications, including emails not sending and shortcodes not working.
299
+ * Fixed: Conditional Notifications fields were showing on incorrect notifications if that add-on was being used.
300
+ * Fixed: POT file regenerated to account for missing translatable strings.
301
+ * Have a Merry Christmas and a happy New Year. Thanks for using BNFW :)
302
+
303
+ = 1.8.4 - 12th August 2020 =
304
+ * Fixed: In certain situations, the password reset key would get modified when using the User Lost Password - For User notification.
305
+ * 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.
306
+ * Improved: Compatibility with the latest version of the [Digest add-on](https://betternotificationsforwp.com/downloads/digest/).
307
+ * Improved: Compatibility with the latest version of the [Multisite add-on](https://betternotificationsforwp.com/downloads/multisite/).
308
+
309
+ = 1.8.3 - 1st June 2020 =
310
+ * 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.
311
+ * Added: Compatibility with the 1.2 release of the [Custom Fields add-on](https://betternotificationsforwp.com/downloads/custom-fields/).
312
+
313
+ = 1.8.2 - 14th May 2020 =
314
+ * Fixed: Email addresses stored in custom fields weren't being used in Comment notifications when the Custom Fields add-on was installed.
315
+ * Fixed: Two PHP notices showing above the subscriptions form when the Subscriptions add-on was installed.
316
+ * Fixed: 'The User Lost Password - For User' notification wasn't outputting shortcodes in the message subject.
317
+ * Fixed: 'The User Lost Password - For User' notification had an incorrect shortcode when inserting the default email content.
318
+
319
+ = 1.8.1 - 21st April 2020 =
320
+ * Added: Core changes to allow the [Global Override add-on](https://betternotificationsforwp.com/downloads/per-post-override/) to only send out notifications once.
321
+ * Fixed: A range of issues relating to the [Global Override add-on](https://betternotificationsforwp.com/downloads/per-post-override/).
322
+
323
+ = 1.8 - 8th April 2020 =
324
+ * 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.
325
+ * New: A huge overhaul of the comment notifications which now gives a great comment management workflow.
326
+ * 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.
327
+ * 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.
328
+
329
+ = 1.7.7 - 27th March 2020 =
330
+ * New: Three new notifications! "New Media Published", "Media Updated", "Media Comment" - complete with new shortcodes for caption, alt text, dimensions, etc.
331
+ * New: "User Logged In - For Admin" notification - sends a notification to the admin when users log in.
332
+ * New: "User Logged In - For User" notification - sends a notification to the user when they log in.
333
+ * New: "Published to Trash" notification - sends a notification when a published post is moved to the trash.
334
+ * Improved: Support for plugins that allow users to be assigned to multiple user roles.
335
+
336
+ = 1.7.6 - 30th January 2020 =
337
+ * New Notification: New Comment Approved. This is sent after the comment has been approved.
338
+ * 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.
339
+ * 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)).
340
+ * Added: `$update` as 3rd parameter to `bnfw_trigger_insert_post` filter.
341
+ * Added: Additional translatable strings.
342
+ * 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.
343
+ * Fixed: Advanced Custom Fields (ACF) was triggering incorrect notifications when post/page/custom post types were submitted via a front-end form.
344
+ * Fixed: The `[post_excerpt]` shortcode now conforms to the `excerpt_length` filter.
345
+ * Fixed: Post Pending Review notifications were being sent in duplicate in certain situations.
346
+ * Fixed: Added an additional check to ensure a Multisite doesn't crash when BNFW is enabled on a site with no Administrator users.
347
+ * Fixed: Multisite notifications were showing the HTMl/Text options for notifications that could only support text.
348
+
349
+ = 1.7.5 - 23rd September 2019 =
350
+ * Added: Support for the new [Digest add-on](https://betternotificationsforwp.com/downloads/digest/)!
351
+ * Added: Support for some big changes coming to the [Custom Fields add-on](https://betternotificationsforwp.com/downloads/custom-fields/).
352
+ * Added: New Spanish translation.
353
+ * Fixed: An issue relating to shortcodes in the [Multisite add-on](https://betternotificationsforwp.com/downloads/multisite/).
354
+ * Fixed: Any 'Privacy' notifications are now hiding options that can't be overridden.
355
+ * Fixed: Disabling automatic paragraphs on the 'User Lost Password - For User' notification wasn't working.
356
+
357
+ = 1.7.4 - 19th August 2019 =
358
+ * New: You can now filter the mail headers in BNFW using `bnfw_mail_headers`. More details [here](https://betternotificationsforwp.com/documentation/actions-and-filters/).
359
+ * Added: Better support for the new Block Editor (Gutenberg) and all post/page/custom post type notifications. More and better support coming soon.
360
+ * Added: Support for the upcoming [Digest add-on](https://betternotificationsforwp.com/downloads/digest/).
361
+ * Fixed: The 'New User Registration - For Admin' notification was sending out the default WordPress notification as well as the BNFW notification in some cases.
362
+ * Fixed: The 'New Comment - Awaiting Moderation' notification was missing from the [Global Override add-on](https://betternotificationsforwp.com/downloads/per-post-override/).
363
+ * Fixed: A fatal error which occasionally occurred when a user changes their password on the front-end.
364
+
365
+ = 1.7.3 - 10th April 2019 =
366
+ * 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.
367
+ * 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.
368
+ * 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.
369
+ * 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.
370
+ * 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.
371
+ * 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.
372
+ * Fixed: The 'Send this Notification to the Author' checkbox was missing from the 'New Comment' notification.
373
+ * 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.
374
+ * Fixed: The `[edit_post]` shortcode was escaping ampersands in the URL.
375
+
376
+ = 1.7.2 - 21st November 2018 =
377
+ * 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.
378
+ * Fixed: New Comment Awaiting Moderation notifications weren't being sent to the Post Author, where selected.
379
+
380
+ = 1.7.1 - 5th November 2018 =
381
+ * New: Full support for the new [Subscriptions (GDPR)](https://betternotificationsforwp.com/downloads/subscriptions-gdpr/) add-on.
382
+ * Fixed: Comments marked as SPAM were triggering the 'New Comment Awaiting Moderation' notification.
383
+ * 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.
384
+ * Fixed: A couple of minor javascript errors relating to BNFW add-ons.
385
+
386
+ = 1.7 - 5th September 2018 =
387
+ * A huge update packed full of new features and bug fixes, especially for those that like privacy and comment notifications!
388
+ * 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.
389
+ * 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.
390
+ * New: Shortcode - `[user_role]`. This outputs the user's role (or roles if assigned to more than one).
391
+ * New: Shortcode - `[first_image]`. Outputs the URL of the first image in a post/page/custom post.
392
+ * New: Shortcode - `[post_type_archive]`. Outputs the link for the post type / custom post type archive page.
393
+ * 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.
394
+ * New: Shortcode - `[comment_moderation_link]`. This outputs the link to the WP Admin where you can moderate a new comment.
395
+ * New: Shortcode - `[comment_parent_content]`. This outputs the content of the parent comment when used in a Comment Reply notification.
396
+ * New: Three Comment Moderation Shortcodes - `[comment_moderation_approve]`, `[comment_moderation_spam]`, `[comment_moderation_delete]`. All for new comments. All should be self-explanatory.
397
+ * New: A new column is available in the 'All Notifications' screen that shows which users are excluded from a notification.
398
+ * Added: Dutch translation (props Piet).
399
+ * 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.
400
+ * Updated: Some of the default content that can be quickly added to a default notification was out-of-date.
401
+ * 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.
402
+ * 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.
403
+ * Fixed: The `[edit_post]` shortcode wasn't outputting anything when a non-Editor role could post on the front-end.
404
+ * Fixed: Email addresses beginning with numbers weren't being saved when used in conjunction with the Send to Any Email add-on.
405
+ * Fixed: The SVG icon on WordPress.org wasn't exported correctly.
406
+
407
+ = 1.6.14 - 25th May 2018 =
408
+ * 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.
409
+ * 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).
410
+ * 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.
411
+ * New: A list of available actions and filters in BNFW is now available in the [website documentation](https://betternotificationsforwp.com/documentation/actions-and-filters/).
412
+ * 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.
413
+ * Fixed: Media inserted via the WYSIWYG editor wasn't showing. This should now be fixed.
414
+ * Fixed: An issue where the `[post_term taxonomy="X"]` shortcode could only be used once in a notification.
415
+ * Fixed: All date shortcodes are now translatable.
416
+
417
+ = 1.6.13 - 5th April 2018 =
418
+ * Added: Full support for the new [Multisite](https://betternotificationsforwp.com/downloads/multisite/) add-on.
419
+ * Fixed: Multisite-only - the user_id was being used instead of the username in the login URL in the Lost Password - For User notification.
420
+ * Fixed: Multisite-only - the New User Registration - For User notification wasn't working at all.
421
+ * 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.
422
+ * Fixed: Some user shortcodes were only being outputted for the first user in a user role.
423
+ * Fixed: An occasional issue where some notifications weren't appearing for custom post types.
424
+
425
+ = 1.6.12 - 1st March 2018 =
426
+ * 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.
427
+ * Added: Preliminary changes for the upcoming [Multisite](https://betternotificationsforwp.com/downloads/multisite/) add-on.
428
+
429
+ = 1.6.11 - 13th February 2018 =
430
+ * Fixed: Update Reminder and Custom Field Updated notifications weren't showing for custom post types.
431
+
432
+ = 1.6.10 - 31st January 2018 =
433
+ * 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.
434
+ * 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.
435
+ * 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.
436
+ * 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.
437
+ * 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)).
438
+ * 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.
439
+ * Improved: All date related shortcodes now output in the date and time format set in Settings > General in the WordPress Admin.
440
+ * Improved: The list of available notifications has been re-ordered to make more sense.
441
+ * Improved: A warning will now show if the total user count in the Send To box is more than 200 users.
442
+ * Improved: Usage tracking will now only load on single sites and not on sites that are part of a Multisite network.
443
+ * Updated: Usage tracking SDK updated to the latest version.
444
+ * Fixed: Warnings were showing when posting a new comment on the front-end.
445
+
446
+ = 1.6.9 - 7th December 2017 =
447
+ * Merry Christmas & Happy New Year!
448
+ * New: Support for new [Profile Builder Add-on](https://betternotificationsforwp.com/downloads/profile-builder/).
449
+ * Fixed: An issue where the YouTube video wasn't showing properly on the BNFW WP.org plugin page.
450
+
451
+ = 1.6.8 - 23rd November 2017 =
452
+ * 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.
453
+ * Added: A minimum PHP version of 5.6 is now required to run BNFW.
454
+ * Fixed: Compatibility with the [Reminders](https://betternotificationsforwp.com/downloads/update-reminder/) and [Conditional Notifications](https://betternotificationsforwp.com/downloads/conditional-notifications/) add-ons.
455
+ * 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/).
456
+
457
+ = 1.6.7 - 10th August 2017 =
458
+ * New: Shortcode - `[current_time]` Will output the current time as per the settings in WordPress > Settings.
459
+ * New: Shortcode - `[current_date]` Will output the current date as per the settings in WordPress > Settings.
460
+ * New: Shortcode - `[admin_email]` Adds the email address of the main site admin as per the settings in WordPress > Settings.
461
+ * Fixed: BNFW now respects the post status of posts submitted via ACF's front-end forms (acf_form).
462
+ * Fixed: Privately Published posts that are updated now trigger the 'Post Updated' notification.
463
+ * Changed: The opt-in for plugin tracking in BNFW has changed. You may be asked to opt-in / opt-out when updating the plugin.
464
+
465
+ = 1.6.6 - 28th June 2017 =
466
+ * Fixed: New Comments on Custom Post Types weren't always sending notifications.
467
+ * Fixed: An issue where using the `bnfw_trigger_insert_post()` filter wasn't always working correctly.
468
+ * Fixed: An issue where checking a notification was disabled wasn't always working correctly.
469
+ * 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/).
470
+ * Added: Support for huge logic enhancements to the soon to be updated [Global Override add-on](https://betternotificationsforwp.com/downloads/per-post-override/).
471
+ * Added: Support for the new 'User Login Reminder' notification in the soon to be updated [Reminders add-on](https://betternotificationsforwp.com/downloads/update-reminder/).
472
+
473
+ = 1.6.5 - 18th May 2017 =
474
+ * New: ACF Form compatibility has now been re-added! Props to @elliotcondon for the help.
475
+ * 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.
476
+
477
+ = 1.6.4 - 18th April 2017 =
478
+ * New: You can now use `[global_user_username]` in any notification to output the recipient's username.
479
+ * 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.
480
+ * Improved: Clearer labelling on new custom post type notifications.
481
+ * 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.
482
+ * Fixed: The 'Send To' select box was being overlayed by the dropdown that shows when clicking in the box.
483
+ * Fixed: Searching for a user when a site has more than 200 users in the 'Send To' box now works as expected.
484
+
485
+ = 1.6.3 - 13th March 2017 =
486
+ * Added: Support for the new [Send to Any Email add-on](https://betternotificationsforwp.com/downloads/send-to-any-email/).
487
+ * Added: Support for Advanced Custom Field (ACF) front-end forms. Finally!
488
+ * Updated: French translation (props @matcho).
489
+ * Improved: The 'Lost Password' notifications now begin with 'User Lost Password' to make them easier to understand.
490
+ * Fixed: The 'Reply To' fields weren't saving correctly.
491
+ * Fixed: Ensure post shortcodes are rendered before sending (props @cliffpaulick).
492
+ * Fixed: A minor issue with the custom field selection box when using the [Custom Fields add-on](https://betternotificationsforwp.com/downloads/custom-fields/).
493
+
494
+ = 1.6.2 - 17th February 2017 =
495
+ * Fixed: The 'Shortcode Help' button wasn't working correctly for some of the new notifications.
496
+
497
+ = 1.6.1 - 17th February 2017 =
498
+ * New & Improved: The 'Password Changed - For User', 'Password Changed - For Admin', and 'User Email Changed - For User' notifications have now been fully implemented.
499
+ * New: You can now use `[post_term taxonomy="TAXONOMY_NAME"]` to output the term(s) from the chosen taxonomy.
500
+ * Improved: Any anti-SPAM plugin should now work with BNFW, not just Akismet.
501
+ * 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.
502
+ * Fixed: The Global User Shortcodes weren't outputting anything when used in the 'User Email Changed - For User' notification.
503
+ Fixed: When a 'Lost Password For User' notification had been set-up but disabled, it wasn't disabling the default WordPress notification.
504
+ * Fixed: The 'WordPress Core Automatic Background Updates' notification wasn't working at all.
505
+ * Fixed: The Global User Shortcodes were being output incorrectly in test emails.
506
+ * Fixed: The `[featured_image]` shortcode was outputting the shortcode name as opposed to a blank when no featured image is set.
507
+ * Fixed: A number of warnings and notices relating to the 'Lost Password' notifications when on WordPress's Lost Password screen.
508
+ * Fixed: The 'Add-on Licenses' screen was displaying HTML characters where there shouldn't be any.
509
+ * Fixed: An error was occurring when triggering notifications when used in conjunction with the latest version of the Custom Fields add-on.
510
+ * Fixed: Some language translation strings were incorrect.
511
+ * Updated: EDD_SL_Plugin_Updater is now at the latest version for add-ons.
512
+
513
+ = 1.6 - 12th December 2016 =
514
+ * Merry Christmas & Happy New Year!
515
+ * 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.
516
+ * New: Notifications for privately published posts / pages / custom post types.
517
+ * New: Notification and accompanying shortcode for customising WordPress Core Automatic Background Updates (Success / Fail / Critical).
518
+ * New: Notification for User Password Changed.
519
+ * New: Notification for User Email Changed - For User.
520
+ * New: Shortcodes for showing the old and new user role when used in conjunction with the User Role Changed notifications.
521
+ * New: You can now add a 'Reply To' name and email address in the Additional Email Fields for all notifications that support it.
522
+ * 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'.
523
+ * New: All transactional notifications can now be set to either HTML or Plain Text.
524
+ * Improved: Better compatibility with [Theme My Login](https://en-gb.wordpress.org/plugins/theme-my-login/).
525
+ * 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".
526
+ * Improved: Compatibility with Mashshare.
527
+ * Fixed: Global User Shortcodes weren't being outputted correctly in the 'Lost Password - For User' notification.
528
+ * Fixed: Child themes weren't being registered correctly in the filter when using the front-end forms filter.
529
+ * Fixed: The number of options within notifications was being limited to the number of blog posts WordPress was set to show.
530
+ * Fixed: The 'Shortcode Help' button wasn't linking to the BNFW website correctly for some BNFW add-ons.
531
+
532
+ = 1.5.3 - 13th September 2016 =
533
+ * Fixed: User Roles in the 'User Roles / Users' admin column were being displayed only in lowercase.
534
+ * Fixed: The `[wp_capabilities]` shortcode wasn't outputting properly. It now displays the higher-level capabilities that the user has.
535
+
536
+ = 1.5.2 - 6th September 2016 =
537
+ * Fixed: Custom User Roles were showing 0 users in the 'To' field.
538
+ * Added: Generic CSS classes to BNFW admin.
539
+ * Updated: German Translation to show English in certain places where translation text breaks the WP Admin UI (props @helmi).
540
+ * Full code review and submission to WordPress VIP!
541
+
542
+ = 1.5.1 - 5th August 2016 =
543
+ * Fixed: 'Text' mode in the WYSIWYG editor didn't show any buttons when the BNFW Per-post Override Add-on was activated.
544
+
545
+ = 1.5 - 25th July 2016 =
546
+ * 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]`).
547
+ * 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]`).
548
+ * 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.
549
+ * New: Shortcode `[featured_image]`. Outputs the URL for the featured image (if one is available).
550
+ * New: Shortcode `[user_avatar]`. Outputs the User's avatar when used in a capable notification.
551
+ * New: Shortcode `[commenter_avatar]`. Outputs the comment author's avatar for comment-based notifications.
552
+ * Improved: 'Comment Reply' notifications are now available to use for Pages and Custom Post Types.
553
+ * Improved: When sending notifications to user roles in the 'To' field, it will now show how many users are in that role.
554
+ * 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.
555
+
556
+ = 1.4.1 - 3rd June 2016 =
557
+ * 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.
558
+ * Fixed: The 'User Role Changed' notification was broken after the update to WordPress 4.5.
559
+ * 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.
560
+ * Fixed: User shortcodes for new comments on custom post types weren't being outputted properly.
561
+ * Fixed: The 'Notifications' BNFW menu item in the Sidebar in the WordPress Admin was showing for non-admins.
562
+ * Added: German Translation (props Michael Schröttle).
563
+
564
+ = 1.4 - 8th April 2016 =
565
+ * New: Shortcode `[post_slug]`. Output the post slug.
566
+ * New: Shortcode `[edit_post]`. Outputs the link to edit the post / page / custom post.
567
+ * New: Shortcode `[post_parent_permalink]`. Outputs a permalink to the post / page / custom post's parent item.
568
+ * New: Shortcode `[author_link]`. Outputs a link to the post / page / custom post's author archive.
569
+ * New: You can now add the collection of User Shortcodes to the 'Lost Password - For User' email.
570
+ * 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.
571
+ * 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.
572
+ * 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.
573
+ * 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.
574
+ * Improved: 'New Comment / Awaiting Moderation', 'New Trackback', and 'New Pingback' notifications now show the 'Send this notification to the Author only' checkbox.
575
+ * Improved: If a notification is present but disabled, the default WordPress notification (if there is one), will not be sent.
576
+ * Fixed: New Post Published notifications weren't being sent if you had the Per-post Override add-on installed.
577
+
578
+ = 1.3.9.5 - 26th February 2016 =
579
+ * Fixed: New Post Published notifications were triggering multiple times due to `auto_draft_to_publish`.
580
+
581
+ = 1.3.9.4 - 15th February 2016 =
582
+ * Filter improvements for the new [Per-post Override add-on](https://betternotificationsforwp.com/downloads/per-post-override/).
583
+
584
+ = 1.3.9.3 - 12th February 2016 =
585
+ * 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.
586
+ * 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.
587
+
588
+ = 1.3.9.2 - 29th January 2016 =
589
+ * 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!
590
+ * 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.
591
+ * Fixed: 'User Role Changed' notifications were being triggered for new users.
592
+ * Fixed: The label for custom taxonomies was showing in the Notification select box even if you didn't have any.
593
+ * Fixed: A warning was showing when no 'CC' or 'BCC' details were added but the 'Name' and 'From' details were specified.
594
+ * Fixed: A warning was showing after a taxonomy was deleted but a notification existed for it.
595
+ * Fixed: Replaced select2 v4 script for full version for better compatibility with other plugins.
596
+ * Fixed: The javascript in the plugin is now translatable.
597
+ * Added: French translation - props Mygale06.
598
+
599
+ = 1.3.9.1 - 9th January 2016 =
600
+ * Fixed: Missing shortcode link for new 'User Role Changed' notification.
601
+ * Fixed: Duplicate 'User Role Changed' listing in the Notification select box.
602
+
603
+ = 1.3.9 - 9th January 2016 =
604
+ * Happy New Year!
605
+ * New: Transactional notification for when a User Role Changed. This is sent to the user when their User Role is changed.
606
+ * Fixed: Ensure that at least one User or User Role is selected before saving a notification.
607
+ * Fixed: select2 v4 update and compatibility with Ultimate Member and ACF Pro.
608
+
609
+ = 1.3.8 - 16th December 2015 =
610
+ * Fixed: Notifications weren't being sent out at all. After lots of testing, I think this should now be resolved.
611
+ * Fixed: An issue where quotes in the Subject field were causing part of/all the field content to be removed.
612
+ * 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.
613
+
614
+ = 1.3.7 - 11th December 2015 =
615
+ * Fixed: An issue where EDD_SL_Plugin_Updater class was already declared by another plugin.
616
+
617
+ = 1.3.6 - 11th December 2015 =
618
+ * Merry Christmas to you all!
619
+ * New: Password Reset notifications can now be in HTML or Plain Text.
620
+ * 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.
621
+ * Updated: select2.js library updated to v4.
622
+ * Fixed: Compatibility with password reset notifications in WordPress 4.1.0 and below.
623
+ * Fixed: An issue where the 'Tag' label was showing incorrectly in the 'All Notifications' screen.
624
+ * 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.
625
+
626
+ = 1.3.5 - 9th October 2015 =
627
+ * 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.
628
+ * Fixed: An issue where the 'disabled wpautop' checkbox was appearing on transactional emails.
629
+ * Fixed: Some labels in the 'All Notifications' screen weren't formatted correctly.
630
+ * 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.
631
+
632
+ = 1.3.4 - 2nd October 2015 =
633
+ * 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.
634
+ * New: You can now add images to your notifications using the 'Add Media' button above the WYSIWYG editor.
635
+ * New: Portuguese Brazil translation for v1.3.3 (props Glayton Caixeta).
636
+ * New: BNFW now has it's own [website](https://betternotificationsforwp.com/)!
637
+ * New: Buttons have been added linking to the Documentation and Shortcode Help sections of the website next to the WYSIWYG editor.
638
+ * 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).
639
+ * New: Added a video overview of BNFW showing it's features and functionality to the main plugin page and website.
640
+ * Fixed: The 'New User Registration - For User' now works again after WordPress 4.3 broke it.
641
+ * Fixed: HTML using quotes was being escaped in emails.
642
+ * Fixed: The 'Settings' sidebar menu item wasn't highlighting properly.
643
+ * I also added all previous release dates to this changelog.
644
+ * 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).
645
+
646
+ = 1.3.3 - 22nd August 2015 =
647
+ * New: You can now send a notification to the Post Author only, where a notification supports it.
648
+ * 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.
649
+ * New: Support for WordPress 4.3.
650
+ * New: Pending posts that are changed to Published now trigger the 'New Post / Page Notification'.
651
+ * 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').
652
+ * Improved: Swapped the green tick for a dashicons tick for a slightly more speedier, native-feeling plugin.
653
+ * Improved: Reduced the flash of hidden elements when loading the New / Edit Notification screen.
654
+ * 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.
655
+ * Fixed: Some output was being showed when WP_DEBUG was enabled.
656
+ * Fixed: Removed the 'slug' field when enabled from Screen Options.
657
+
658
+ = 1.3.2 - 20th July 2015 =
659
+ * Fixed: Replaced a deprecated function which might cause a warning to show when `WP_DEBUG` was enabled.
660
+
661
+ = 1.3.1 - 18th July 2015 =
662
+ * Fixed: The P2 theme wasn't triggering new post or comment notifications.
663
+ * Fixed: Sometimes the shortcode help link at the bottom of the notification editor wouldn't link to the help page properly.
664
+
665
+ = 1.3 - 2nd July 2015 =
666
+ * New: Option to disable notifications going to the user that triggered them.
667
+ * 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).
668
+ * New: New Shortcode: Update Author. Use `[post_update_author]` in any Post or Page notifications to see which user updated the post.
669
+ * New: Choose between sending the notification as plain text or HTML.
670
+ * 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.
671
+ * Improved: The 'New User Registration' (For Admin & User) and 'Welcome Email' notifications now allow you to use all of the 'User' shortcodes.
672
+ * Fixed: Formatting in emails sent from other plugins were being effected by BNFW.
673
+ * Fixed: Notifications for Categories, Terms and Tags weren't getting triggered.
674
+ * 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).
675
+ * Fixed: Additional Email fields were being shown for transactional notifications that couldn't use them.
676
+
677
+ = 1.2 - 19th May 2015 =
678
+ * New: WYSIWYG Editor for notifications!
679
+ * New: From Name, From Email, CC and BCC options are now available to use for each notification!
680
+ * 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.
681
+ * Improved: The User Role / Users drop down box has been unified for simplicity.
682
+ * Fixed: Lost Password (For User) notifications were being sent in plain text.
683
+ * Fixed: Not all custom post types were showing when setting up a new notification.
684
+ * Fixed: Notifications for New Terms not generating notification emails.
685
+ * Fixed: Custom Taxonomies missing from columns in the All Notifications screen.
686
+ * Fixed: Added a space after lists of tags, categories, and terms.
687
+ * Thank you again for all of your support, feedback, and awesome reviews. You people make WordPress great!
688
+
689
+ = 1.1.5.3 - 21st April 2015 =
690
+ * Compatibility with WordPress 4.2.
691
+
692
+ = 1.1.5.2 - 15th April 2015 =
693
+ * Fixed: Custom Post Type Pending Posts not being sent.
694
+ * Fixed: Post excerpt not outputting anything.
695
+ * Removed: `[closedpostboxes_page], [rich_editing], and [admin_color]` as was a bit defunct and causing issues.
696
+ * Changed: `[post_author]` now outputs the display name instead of the author ID.
697
+ * Improved: Clarity of custom post type and taxonomy labels.
698
+
699
+ = 1.1.5.1 - 13th April 2015 =
700
+ * Fix for Custom Post Type notifications not populating shortcodes.
701
+ * Fix for Custom Taxonomy terms not sending out notification emails.
702
+
703
+ = 1.1.5 - 10th April 2015 =
704
+ * New Shortcode: [permalink].
705
+ * New Notifications: 'Scheduled Posts' and 'Scheduled Pages'.
706
+ * New Shortcodes for the above Notifications: [post_scheduled_date] and [post_scheduled_date_gmt].
707
+ * New Notification: 'New Page Published'.
708
+ * New Notification: 'Page 'Updated'.
709
+ * New Notification: 'Page Pending Review'.
710
+ * New Notification: 'New Page - Comment'.
711
+ * Fixed: A few bugs reported via the forums and some others that i've found - thanks everyone!
712
+
713
+ = 1.1 - 16th March 2015 =
714
+ * Lots of cool new stuff and more to come soon!
715
+ * Transactional notifications (notifications intended only for the end user) have been added as a new group in the notifications select box.
716
+ * New Notification: Post Pending Review (for all post types).
717
+ * New Notification: New User Registration (Transactional).
718
+ * New Notification: Password Reset (Transactional).
719
+ * New Notification: New User Welcome Email (Transactional).
720
+ * Added an option to enable or disable each notification.
721
+ * Better support for custom taxonomies and terms.
722
+ * Fixed: A few PHP warnings were showing when using `WP_DEBUG`.
723
+ * Fixed: HTML tags being stripped from `[post_content]` and `[comment_content]`.
724
+ * Removed: Some WordPress Multisite shortcodes that didn't work properly. Proper support for Multisite will come later.
725
+ * 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.
726
+
727
+ = 1.0.2 - 17th January 2015 =
728
+ * Bug fix for `[ID]` shortcode not outputting anything.
729
+ * Bug fix for `[post_category]` showing as empty.
730
+ * Added tags shortcode for use in certain notifications using `[post_tag]`.
731
+
732
+ = 1.0.1 - 21th December 2014 =
733
+ * Bug fix for notifications not being sent to custom user roles or individual users of custom roles.
734
+ * Added a 'Notification Type' column to the notifications screen.
735
+ * Renamed 'User Roles' column in notifications screen to 'User Roles/Users'.
736
+
737
+ = 1.0 - 17th December 2014 =
738
+ * First major release - we're no longer in beta!
739
+ * Total overhaul. The plugin has been completely re-written.
740
+ * Auto-importer: Your old notifications will be imported when updating the plugin.
741
+ * New 'Generator' for easily creating and editing your notifications.
742
+ * More options and notification types as per feedback via the forums - thanks everyone!
743
+ * Granular control over choosing either user roles or individual users you'd like to send a notification to.
744
+ * Fully translatable.
745
+ * Loads of bugfixes and improvements.
746
+
747
+ = 0.2.1 beta - 4th June 2013 =
748
+ * Minor Bugfixes
749
+
750
+ = 0.2 beta - 8th April 2013 =
751
+ * Added an option to suppress SPAM comment notifications.
752
+
753
+ = 0.1 beta - 25th March 2013 =
754
+ * Initial version of the plugin.
755
+ * Settings page for configuring notification types for roles.
756
+ * Email Templates page for customising emails using HTML and shortcodes.
757
+
758
+
759
+
760
+ == Upgrade Notice ==
761
+
762
+ = Migrating from 0.2.1 to 1.0 =
763
+
764
+ Version 1 features an auto-importer which should migrate all of your notifications from any previous versions of the plugin to 1.0.
765
+ Please ensure that you check, double check and test your notifications before and after upgrading.
bnfw.php CHANGED
@@ -3,7 +3,7 @@
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.9
7
  * Requires at least: 4.8
8
  * Requires PHP: 7.1
9
  * Author: Made with Fuel
@@ -39,7 +39,7 @@ if ( ! class_exists( 'BNFW', false ) ) {
39
  *
40
  * @var string
41
  */
42
- public $bnfw_version = '1.9';
43
  /**
44
  * Class Constructor.
45
  *
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.9.1
7
  * Requires at least: 4.8
8
  * Requires PHP: 7.1
9
  * Author: Made with Fuel
39
  *
40
  * @var string
41
  */
42
+ public $bnfw_version = '1.9.1';
43
  /**
44
  * Class Constructor.
45
  *
includes/engine/class-bnfw-engine.php CHANGED
@@ -1212,9 +1212,11 @@ if ( ! class_exists( 'BNFW_Engine', false ) ) {
1212
  * @return array
1213
  */
1214
  public function get_emails_from_users( $users, $exclude = null, $post_id = 0, $setting = array() ) {
1215
- $user_ids = array();
1216
- $user_roles = array();
1217
- $non_wp_users = array();
 
 
1218
 
1219
  if ( empty( $users ) ) {
1220
  return array();
@@ -1228,6 +1230,8 @@ if ( ! class_exists( 'BNFW_Engine', false ) ) {
1228
  continue;
1229
  } elseif ( absint( $user ) > 0 ) {
1230
  $user_ids[] = absint( $user );
 
 
1231
  } else {
1232
  $non_wp_users[] = $user;
1233
  }
@@ -1245,9 +1249,22 @@ if ( ! class_exists( 'BNFW_Engine', false ) ) {
1245
  if ( bnfw_is_comment_notification( $setting['notification'] ) && $post_id ) {
1246
  $comment = get_comment( $post_id );
1247
  $post_id = $comment->comment_post_ID;
 
 
 
 
 
 
 
 
1248
  }
1249
  }
1250
 
 
 
 
 
 
1251
  $non_wp_emails = apply_filters( 'bnfw_non_wp_emails', array(), $non_wp_users, $post_id );
1252
 
1253
  return array_merge( $emails_from_user_roles, $emails_from_user_ids, $non_wp_emails );
1212
  * @return array
1213
  */
1214
  public function get_emails_from_users( $users, $exclude = null, $post_id = 0, $setting = array() ) {
1215
+ $user_ids = array();
1216
+ $user_roles = array();
1217
+ $non_wp_users = array();
1218
+ $user_shortcodes = array();
1219
+ $user_shortcodes_emails = array();
1220
 
1221
  if ( empty( $users ) ) {
1222
  return array();
1230
  continue;
1231
  } elseif ( absint( $user ) > 0 ) {
1232
  $user_ids[] = absint( $user );
1233
+ } elseif ( str_contains( $user, '[' ) ) {
1234
+ $user_shortcodes[] = $user;
1235
  } else {
1236
  $non_wp_users[] = $user;
1237
  }
1249
  if ( bnfw_is_comment_notification( $setting['notification'] ) && $post_id ) {
1250
  $comment = get_comment( $post_id );
1251
  $post_id = $comment->comment_post_ID;
1252
+
1253
+ // Replace shortcode to actual value.
1254
+ if ( ! empty( $user_shortcodes ) ) {
1255
+ $user_shortcodes_emails = $this->handle_shortcodes( implode( ',', $user_shortcodes ), $setting['notification'], $comment->comment_ID );
1256
+ }
1257
+ } else if ( ! empty( $user_shortcodes ) ) {
1258
+ // Replace shortcode to actual value.
1259
+ $user_shortcodes_emails = $this->handle_shortcodes( implode( ',', $user_shortcodes ), $setting['notification'], $post_id );
1260
  }
1261
  }
1262
 
1263
+ // Merge all shortcode emails to non_wp_users variables.
1264
+ if ( ! empty( $user_shortcodes_emails ) ) {
1265
+ $non_wp_users = array_merge( $non_wp_users, explode( ',', $user_shortcodes_emails ) );
1266
+ }
1267
+
1268
  $non_wp_emails = apply_filters( 'bnfw_non_wp_emails', array(), $non_wp_users, $post_id );
1269
 
1270
  return array_merge( $emails_from_user_roles, $emails_from_user_ids, $non_wp_emails );
includes/helpers/helpers.php CHANGED
@@ -244,3 +244,20 @@ if ( ! function_exists( 'bnfw_format_date' ) ) {
244
  return date( $date_format . ' ' . $time_format, strtotime( $date ) );
245
  }
246
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
244
  return date( $date_format . ' ' . $time_format, strtotime( $date ) );
245
  }
246
  }
247
+
248
+ if ( ! function_exists( 'str_contains' ) ) {
249
+ /**
250
+ * Backward php version support `str_contains()` function added in PHP 8.0.
251
+ *
252
+ * Performs a case-sensitive check indicating if needle is
253
+ * contained in haystack.
254
+ *
255
+ * @param string $haystack The string to search in.
256
+ * @param string $needle The substring to search for in the haystack.
257
+ *
258
+ * @return bool True if `$needle` is in `$haystack`, otherwise false.
259
+ */
260
+ function str_contains( $haystack, $needle ) {
261
+ return ( '' === $needle || false !== strpos( $haystack, $needle ) );
262
+ }
263
+ }