Skip to content

Instantly share code, notes, and snippets.

@keiraarts
Created July 20, 2018 18:32
Show Gist options
  • Save keiraarts/816b5dffa72628d6d436c324053764de to your computer and use it in GitHub Desktop.
Save keiraarts/816b5dffa72628d6d436c324053764de to your computer and use it in GitHub Desktop.
wp_remote_post 403 Forbidden Fix.
$headers = array(
'User-Agent' => 'Stripe Connect'
);
$response = wp_remote_post( $endpoint, array(
'headers' => $headers,
'body' => http_build_query( $data ),
)
);
// Add http_build_query to your payload.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment