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