simcal_esc_timezone

Escape timezone string.

Description

(mixed|string) simcal_esc_timezone( (string) $tz, (string) $default = 'UTC' ); 

Returns (mixed|string)

Parameters (2)

0. $tz (string)
The tz.
1. $default — Optional. (string) => 'UTC'
The default.

Usage

  1. if ( !function_exists( 'simcal_esc_timezone' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'simple-calendar/includes/functions/shared.php'; 
  3.  
  4. // The tz. 
  5. $tz = ''; 
  6.  
  7. // The default. 
  8. $default = 'UTC'; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = simcal_esc_timezone($tz, $default); 
  12.  

Defined (1)

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

/includes/functions/shared.php