woocommerce_unforce_ssl_checkout
Использование
add_filter( 'woocommerce_unforce_ssl_checkout', 'wp_kama_woocommerce_unforce_ssl_checkout_filter' );
/**
* Function for `woocommerce_unforce_ssl_checkout` filter-hook.
*
* @param $true
*
* @return
*/
function wp_kama_woocommerce_unforce_ssl_checkout_filter( $true ){
// filter...
return $true;
}
- $true
- -
Где вызывается хук
woocommerce_unforce_ssl_checkout
woocommerce/includes/class-wc-https.php 109
if ( ! wc_site_is_https() && is_ssl() && $_SERVER['REQUEST_URI'] && ! is_checkout() && ! wp_doing_ajax() && ! is_account_page() && apply_filters( 'woocommerce_unforce_ssl_checkout', true ) ) {