please disable SSL check for wp_remote_post on local dev environments
-
Hi
Could you please disable SSL checks for
wp_remote_post
on local dev environments?The reason is, that in some local dev environments like mine, we use not verifiable SSL certificates.
You could add this to the
dispatch
function inwppfm-async-request.php
.if (isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] == '127.0.0.1') { $args['sslverify'] = false; }
Full code example: https://gist.github.com/alewolf/7b51a4a35d5578ce65f1d8c50ea4cfbe
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘please disable SSL check for wp_remote_post on local dev environments’ is closed to new replies.