Codex tools: Log in
Contents |
Checks if SSL is being used.
<?php is_ssl() ?>
This tag has no parameters.
<?php
if (is_ssl()) {
//action to take for page using SSL
}
?>
Returns true if the page is using SSL (checks if HTTPS or on Port 443).
Since: 2.6.0
is_ssl() is located in wp-includes/functions.php.