WP Email notification: Email/Password
-
Hi Christian
I think my question is partially answered here: https://github.com/christianwach/civicrm-wp-member-sync/issues/18#issuecomment-303952188
When your plugin creates a WordPress user from a CiviCRM Member Contact record, the standard WordPress New User Registration email is not sent with email/password details. Is that correct?
If so, what’s the best way to hook in to your plugin to trigger the notification email action in WP? I’m assuming the
wp_new_user_notification
function could be used, assuming we can pass the right values of the new user?Would something like this work?
add_action( 'civi_wp_member_sync_after_insert_user', 'cp_trigger_user_notification' ); function cp_trigger_user_notification( $civi_contact, $user_id ) { wp_new_user_notification( $user_id, null, 'both' ); }
Any pointers gratefully received!
Best wishes
Marcus
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘WP Email notification: Email/Password’ is closed to new replies.