#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?
Let us know if you liked the post. That’s the only way we can improve.