Skip to content

Instantly share code, notes, and snippets.

@mdibrahimk48
Created June 1, 2023 04:55
Show Gist options
  • Save mdibrahimk48/8ef019c887e151504f1e0f4705f8de94 to your computer and use it in GitHub Desktop.
Save mdibrahimk48/8ef019c887e151504f1e0f4705f8de94 to your computer and use it in GitHub Desktop.
CodeAstrology Plugin's HTTP request verify filter
<?php
add_filter( 'https_ssl_verify', '__return_true', PHP_INT_MAX );
add_filter( 'http_request_args', 'codeAstrology_http_request_ssl_verify', PHP_INT_MAX );
function codeAstrology_http_request_ssl_verify( $args ) {
$args[ 'sslverify' ] = true;
return $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment