wc_site_is_https()

Check if the home URL is https. If it is, we don’t need to do things such as ‘force ssl’.


Description Description


Return Return

(bool)


Top ↑

Source Source

File: includes/wc-conditional-functions.php

function wc_site_is_https() {
	return false !== strstr( get_option( 'home' ), 'https:' );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.4.13 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.