New User Notifications and Easy Digital Downloads

To prevent Easy Digital Downloads (EDD) from overriding the ‘New User Registration – For User’ notification, add this line of code to your functions.php file to prevent the EDD email from sending. This will then allow the BNFW notification to work as expected. 1remove_action(’edd_insert_user’, ‘edd_new_user_notification’, 10, 2 );

Read Document

New User Notifications and CiviCRM

In order to trigger the ‘New User Registration – For User’ notifications when inserting users directly using the CiviCRM WordPress Profile Sync plugin, use the following code: 1234function bnfw_trigger_user_notification($civi_contact, $user_id) { wp_new_user_notification( $user_id, null, ‘both’ ); } add_action(’civi_wp_member_sync_after_insert_user’, ‘bnfw_trigger_user_notification’, 10, 2);

Read Document

Directories Pro

Directories Pro has been built to exclusively send notifications using Better Notifications for WP. For more details on how to set this up, please see their support page here.

Read Document

O2 Plugin

If you want to add support for the O2 plugin when used in conjunction with the P2 Theme, simply add the code from this help document.

Read Document

P2 Theme

I’m using the P2 theme and my notifications are coming through twice! In order to fix a problem with P2 not triggering notifications at all, if you post from the WordPress Admin, it will trigger two notifications: One for the standard BNFW post settings in BNFW. One for the additional BNFW P2 post settings in BNFW.…

Read Document

WPAdverts Plugin

The great people over at WPAdverts, have written a code snippet to provide compatibility between BNFW and WPAdverts. You can view this snippet here: https://github.com/simpliko/wpadverts-snippets/blob/master/bnfw-trigger/bnfw-trigger.php

Read Document

Actions and Filters

Here is a list of all current available actions and filters within BNFW. Common functions, such as to provide support for front-end forms in plugins or themes, can be found here. Actions These are the ‘Add New Notification’ screen actions: bnfw_after_default_notifications( $setting ) Triggered after the default notifications list in notification dropdown. bnfw_after_default_notifications_optgroup( $setting )…

Read Document

Troubleshooting WP Cron

WP Cron is essentially a virtual cron that WordPress uses to run tasks at a certain time or interval. It’s not a proper cron like the one you may get in your hosting control panel and it does have some caveats. Common issues with WP Cron and BNFW are: ‘New Post Published’ notifications aren’t sent…

Read Document

How to Trigger a Notification from a Pods Front-end Form

If you use Pods to create custom fields and want to trigger a notification off of a front-end form, you can use this code in your functions.php file as a starting point. Remember to replace ‘my_custom_pod’ in the pods_api_post_save_pod_item_ action with the name of your pod. 12345678910111213141516/** * Update post status on save to published…

Read Document

How to Trigger a Notification from an ACF Front-end Form

If you use Advanced Custom Fields (ACF) and want to trigger a notification off of a front-end form, or edit a form after it’s been submitted but before the notification is triggered, you can do the following: Create a custom page template that contains this code: 123456789101112acf_form(array( ‘post_title’ => true, ‘post_content’ => true, ‘post_id’ =>…

Read Document

Subscribe for BNFW News

Want to know when new add-ons or features are released? Sign up to the newsletter. No spam, ever. Unsubscribe at any time.

Please enter your name.
Please enter a valid email address.
Something went wrong. Please check your entries and try again.