woocommerce_force_ssl_checkout
Template redirect - if we end up on a page ensure it has the correct http/https url.
Использование
add_filter( 'woocommerce_force_ssl_checkout', 'wp_kama_woocommerce_force_ssl_checkout_filter' );
/**
* Function for `woocommerce_force_ssl_checkout` filter-hook.
*
* @param $false
*
* @return
*/
function wp_kama_woocommerce_force_ssl_checkout_filter( $false ){
// filter...
return $false;
}
- $false
- -
Где вызывается хук
woocommerce_force_ssl_checkout
woocommerce/includes/class-wc-https.php 89
if ( ! is_ssl() && ( is_checkout() || is_account_page() || apply_filters( 'woocommerce_force_ssl_checkout', false ) ) ) {