Astra_Addon_Filesystem::is_ssl()

Checks to see if the site has SSL enabled or not.


Description


Return

(bool)


Source

File: classes/class-astra-addon-filesystem.php

	public function is_ssl() {
		if ( is_ssl() ) {
			return true;
		} elseif ( 0 === stripos( get_option( 'siteurl' ), 'https://' ) ) {
			return true;
		} elseif ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && 'https' == $_SERVER['HTTP_X_FORWARDED_PROTO'] ) {
			return true;
		}

		return false;
	}

Changelog

Changelog
Version Description
2.6.4 Introduced.


User Contributed Notes

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