Reply To: Mailchimp one-by-one sync instead of bulk

Home Forums User Registration Mailchimp one-by-one sync instead of bulk Reply To: Mailchimp one-by-one sync instead of bulk

#7006

sanjeev3
Member

Yes. You can use the provided filter hook user_registration_after_register_user_action. Please add the following codes to your child theme’s functions.php.

add_filter( 'user_registration_after_register_user_action', 'ur_force_synchronize', 10, 3 );

function ur_force_synchronize( $form_data, $form_id, $user_id ) {

	$urmc_mailchimp_settings_option = get_option( 'urmc_mailchimp_settings', array() );
	URMC_MailChimp::validate_key_and_update( $urmc_mailchimp_settings_option, true );
}

Let me know if you have any further confusion.

Regards,
WPEverest Support