WC_Admin_Notices::is_ssl()
Determine if the store is running SSL.
Method of the class: WC_Admin_Notices{}
No Hooks.
Return
true|false
. Flag SSL enabled.
Usage
$result = WC_Admin_Notices::is_ssl();
Changelog
Since 3.5.1 | Introduced. |
WC_Admin_Notices::is_ssl() WC Admin Notices::is ssl code WC 9.6.1
protected static function is_ssl() { $shop_page = wc_get_page_permalink( 'shop' ); return ( is_ssl() && 'https' === substr( $shop_page, 0, 5 ) ); }