Created
June 1, 2023 04:55
-
-
Save mdibrahimk48/8ef019c887e151504f1e0f4705f8de94 to your computer and use it in GitHub Desktop.
CodeAstrology Plugin's HTTP request verify filter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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