Powered By Blogger

Thursday, November 9, 2017

trigger function when save xprofile data in buddypress

function updateSubscribe( $user_id, $posted_field_ids, $errors, $old_values, $new_values ) { if ( empty( $errors ) ) { echo "<pre>"; //print_r( $posted_field_ids ); echo "<br>user id: " . $user_id . "<br>"; echo "<b>Old values</b><br>"; print_r($old_values); echo "<b>New values</b><br>"; print_r($new_values); echo "</pre>"; } die("END"); } add_action('xprofile_updated_profile', 'updateSubscribe', 1, 5);

No comments:

Post a Comment