woocommerce_webhook_payload
Usage
add_filter( 'woocommerce_webhook_payload', 'wp_kama_woocommerce_webhook_payload_filter', 10, 4 ); /** * Function for `woocommerce_webhook_payload` filter-hook. * * @param $payload * @param $resource * @param $resource_id * @param $id * * @return */ function wp_kama_woocommerce_webhook_payload_filter( $payload, $resource, $resource_id, $id ){ // filter... return $payload; }
- $payload
- -
- $resource
- -
- $resource_id
- -
- $id
- -
Where the hook is called
woocommerce_webhook_payload
woocommerce/includes/class-wc-webhook.php 439
return apply_filters( 'woocommerce_webhook_payload', $payload, $resource, $resource_id, $this->get_id() );