Description
The wsf_action_webhook_http_headers filter hook allows you to modified the HTTP headers sent with the Webhook action.
Usage
add_filter( 'wsf_action_webhook_http_headers', 'my_hook_function', 10, 4 );
Parameters
Example
// Callback function for the wsf_action_webhook_http_headers filter hook function my_hook_function( $http_headers, $form, $submit, $action ) { // Your code here ... // Return value return $http_headers; } // Add a callback function for the wsf_action_webhook_http_headers filter hook add_filter( 'wsf_action_webhook_http_headers', 'my_hook_function', 10, 4 );
Source File
This hook can be found in:<plugin root>/includes/actions/class-ws-form-action-custom-api.php