wp_ssl_constants

Defines cookie related WordPress constants.

Description

wp_ssl_constants(); 

Usage

  1. if ( !function_exists( 'wp_ssl_constants' ) ) { 
  2. require_once ABSPATH . WPINC . '/default-constants.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wp_ssl_constants(); 
  7.  

Defined (1)

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

/wp-includes/default-constants.php  
  1. function wp_ssl_constants() { 
  2. /** 
  3. * @since 2.6.0 
  4. */ 
  5. if ( !defined( 'FORCE_SSL_ADMIN' ) ) { 
  6. if ( 'https' === parse_url( get_option( 'siteurl' ), PHP_URL_SCHEME ) ) { 
  7. define( 'FORCE_SSL_ADMIN', true ); 
  8. } else { 
  9. define( 'FORCE_SSL_ADMIN', false ); 
  10.  
  11. /** 
  12. * @since 2.6.0 
  13. * @deprecated 4.0.0 
  14. */ 
  15. if ( defined( 'FORCE_SSL_LOGIN' ) && FORCE_SSL_LOGIN ) { 
  16. force_ssl_admin( true );