Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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