Skip to content

Instantly share code, notes, and snippets.

@shrimp2t
Last active May 30, 2019 08:04
Show Gist options
  • Save shrimp2t/0d7cc70fa1bba5aded989f43ea64b6fd to your computer and use it in GitHub Desktop.
Save shrimp2t/0d7cc70fa1bba5aded989f43ea64b6fd to your computer and use it in GitHub Desktop.
<?php
/**
* Plugin Name: Disable HTTP Request SSL Veryify
* Plugin URI: #
* Description: A products manager for woocommerce
* Version: 1.0.0
* Author: shrimp2t
* Author URI: https://github.com/shrimp2t/
* Text Domain:
*/
add_filter( 'http_request_args', 'ts_disable_ssl_veryify', 1, 89 );
function ts_disable_ssl_veryify( $r ) {
$r['sslverify'] = false;
return $r;
}
add_filter( 'http_request_host_is_external', '__return_true', 1, 89 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment