simcal_get_wp_timezone

Get WordPress timezone setting.

Description

(null|string) simcal_get_wp_timezone(); 

Always returns a valid timezone string even when the setting is a GMT offset.

Returns (null|string)


Usage

  1. if ( !function_exists( 'simcal_get_wp_timezone' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'simple-calendar/includes/functions/shared.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = simcal_get_wp_timezone(); 
  7.  

Defined (1)

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

/includes/functions/shared.php