https_local_ssl_verify filter-hookWC 1.0

This is a WordPress - https_local_ssl_verify hook. The plugin just uses it.

Filters whether SSL should be verified for local HTTP API requests.

Usage

add_filter( 'https_local_ssl_verify', 'wp_kama_https_local_ssl_verify_filter', 10, 2 );

/**
 * Function for `https_local_ssl_verify` filter-hook.
 * 
 * @param bool|string $ssl_verify Boolean to control whether to verify the SSL connection or path to an SSL certificate.
 * @param string      $url        The request URL.
 *
 * @return bool|string
 */
function wp_kama_https_local_ssl_verify_filter( $ssl_verify, $url ){

	// filter...
	return $ssl_verify;
}
$ssl_verify(true|false|string)
Boolean to control whether to verify the SSL connection or path to an SSL certificate.
$url(string)
The request URL.

Where the hook is called

WP_Async_Request::get_post_args()
https_local_ssl_verify
WC_Background_Emailer::get_post_args()
https_local_ssl_verify
woocommerce/includes/libraries/wp-async-request.php 132
'sslverify' => apply_filters( 'https_local_ssl_verify', false ),
woocommerce/includes/class-wc-background-emailer.php 135
'sslverify' => apply_filters( 'https_local_ssl_verify', false ),
woocommerce/packages/action-scheduler/lib/WP_Async_Request.php 155
'sslverify' => apply_filters( 'https_local_ssl_verify', false ),

Where the hook is used in WooCommerce

Usage not found.