WP_http(); SSL

WordPress verifies the  SSL cert when you use  $request = new WP_Http();

Sometimes it throws an error because it doesn’t recognize the SSL. To fix it add this code to the functions.php file.

add_filter(‘https_ssl_verify’, ‘__return_false’);

Leave a Reply