ssp_webhook_args

How to use: add_filter()

Included in: Simply Static Pro 1.6.0+

Overview

The ssp_webhook_args lets you modify the arguments passed when notifying external services via our webhook integration (GitHub & AWS S3). It's helpful if you have to pass additional arguments like authentication headers.

Example

The following code snippet adds arguments to the request:

add_filter('ssp_webhook_args', function( $args ) {
    // Add auth header to args.
    $args['headers']['Authorization'] = 'Bearer ' . 'MY_BEARER_TOKEN';
    return $args;
});