Thanks for the response. ??
I did add the delay function:
add_action( 'profile_update', 'my_profile_update_delay', 10, 2 );
function my_profile_update_delay(){
WPWHPRO()->delay->add_post_delayed_trigger( array( $this, 'my_profile_update' ), func_get_args() );
}
function my_profile_update( $user_id, $old_user_data ) {
$custom_data = array(
//custom data here
);
do_action('wp_webhooks_send_to_webhook', $custom_data);
}
Whenever I update a user from a form, it returns
mywebsite.com/wp-admin/admin-ajax.php 500
when “$this” is present, so I replaced “$this” to “my_profile_update_delay”.
now, it doesnt return any error but it doesnt push any webhook either.
seeking for further help.
thanks!