What Action Hook to use For Custom Action
-
Hi again Ironikus,
I just want to ask if what Action Hook Should I use to get the latest data when a user updates a profile.
I know you already have the
Send Data On User Update
option on the plugin.
But I want something custom so I used theprofile_update
action hook of wordpress.
But it doesn’t get the latest data of the user, It seems that it gets the previous data before it was updated.add_action( 'profile_update', 'my_profile_update', 10, 2 ); function my_profile_update( $user_id, $old_user_data ) { $custom_data = array( //custom data here ); do_action('wp_webhooks_send_to_webhook', $custom_data); }
Hope you can help me with this one.
Thanks in advance!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘What Action Hook to use For Custom Action’ is closed to new replies.