1. Home
  2. Plugins
  3. WP Webhooks
  4. For Devs
  5. Filter
  6. Filter incoming payload for webhook actions
  1. Home
  2. For Devs
  3. Filter
  4. Filter incoming payload for webhook actions

Filter incoming payload for webhook actions

wpwhpro/helpers/validate_response_body

Description:
This filter allows you manipulate the newly generated API key for the webhook action URL. You can use it to shorten or extend the length of it, change its value, etc.

Parameter Type Description
$return array The validated response body wrapped inside of an array with the array key content.
$current_content_type string The content type that was parsed within the header of the request.
$response mixed The raw payload of the incoming data.
apply_filters( 'wpwhpro/helpers/validate_response_body', $return, $current_content_type, $response )
Updated on September 1, 2020

Was this article helpful?

Related Articles