Filter: bricks/remote_post
Filters the arguments passed to wp_remote_post() when Bricks performs a remote POST request (e.g., verifying license, submitting form data to webhook).
Parameters
Section titled “Parameters”$args(array): Array of arguments forwp_remote_post()(e.g.,body,timeout,sslverify).$url(string): The URL being requested.
Example usage
Section titled “Example usage”add_filter( 'bricks/remote_post', function( $args, $url ) { // Example: Add custom headers to webhook requests if ( strpos( $url, 'webhook.example.com' ) !== false ) { $args['headers']['X-Custom-Header'] = 'my-value'; }
return $args;}, 10, 2 );Was this helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Please do not include passwords, license keys, or personal data. We store submitted notes to improve the docs.
Thanks for sharing feedback. We're using it to improve these docs.