Skip to main content Skip to navigation Skip to footer

New User Notifications and CiviCRM

Updated

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:

[cc lang=”php”]

function 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);

[/cc]

Privacy Overview

This website uses cookies so that it can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to this website and helping employees to understand which sections of the website you find most interesting and useful.

Strictly Necessary Cookies

This website uses the Stripe Payment Processor. Cookies from Stripe are required in order for this website to provide eCommerce functions, such as to accept payments.

This website uses YouTube to host and display videos relating to the operation of this plugin and forms part of the documentation. Use of cookies from YouTube is required in order to fully document or explain elements of a product.

PHPSESSID - This cookie is native to PHP applications. The cookie is used to store and identify a users' unique session ID for the purpose of managing a user's session on the website. The cookie is a session cookies and is deleted when all the browser windows are closed.