Docly

cs_post_webhook_action

Estimated reading: 1 minute

Description

With this action you can catch the webhook call yourself so that you can determine in your own action whether additional code needs to be executed as soon as a webhook call takes place from Salesforce/Findock

Use

				
					function do_custom_stuf( $payment ) {
    die(print_r($payment));
}
add_action( 'cs_post_webhook_action', 'do_custom_stuff', 10, 1 );				
			

Parameters

  • $payment (object)
    This object contains all information about the modified Payment object from the database table wp_gp_donations.