wc_site_is_https

Check if the home URL is https.

Description

wc_site_is_https(); 

If it is, we don't need to do things such as force ssl..


Usage

  1. if ( !function_exists( 'wc_site_is_https' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-conditional-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wc_site_is_https(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-conditional-functions.php  
  1. function wc_site_is_https() { 
  2. return false !== strstr( get_option( 'home' ), 'https:' );