Re: notify site admin when user updates profile
There are two hooks BuddyPress uses when editing a profile that you can hook into:
`do_action( ‘xprofile_profile_field_data_updated’, $field_id, $_POST );
do_action( ‘xprofile_updated_profile’, $bp->displayed_user->id, $posted_field_ids, $errors );`
These actions are in the xprofile_screen_edit_profile() function in bp-xprofile.php.
If you’re unfamilar with WP plugin development, check out the WP Plugin API:
https://codex.wordpress.org/Plugin_API