wpf_user_created

#Overview

This action is triggered whenever WP Fusion has created a new contact record in your CRM as the result of a user registration.

#Parameters

  • $user_id: The user ID
  • $contact_id: The ID of the contact that was created in the CRM
  • $user_meta: The metadata that was synced to the CRM

#Examples

#Generic example

function my_function( $user_id, $contact_id, $user_meta ) {
	
	if ( 'Active' == $user_meta['custom_field_key'] ) {
		// Do something here.
		wp_fusion()->user->apply_tags( array( 'Active' ), $user_id );
	}
}

add_action( 'wpf_user_created', 'my_function', 10, 3 );

Was this helpful?

Our Black Friday Sale is Here! 🎉

Take advantage of the biggest discount we ever offer. Save 30% off new licenses and upgrades.
Days
Hours
Minutes
Seconds
Sorry, this offer has expired.

Valid until Monday November 28th. See Terms and Conditions