Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: [Resolved] Notify by Email when xProfile Updated

@shanebp

Moderator

Total rewrite.

The hook runs after a BP profile is updated.
Write a function to see what was changed and then maybe send an email.

This should get you started…

function whelund_profile_updated(bp_displayed_user_id(), $posted_field_ids, $errors, $old_values, $new_values) {
  // dump the vars for orientation on what to write in the function
  var_dump( $posted_field_ids );
  // decide whether to send an email, then use wp_email() 
}
add_action( 'xprofile_updated_profile', 'whelund_profile_updated', 1, 5 );
Skip to toolbar