simcal_get_calendar

Get a calendar.

Description

(null|SimpleCalendarAbstractsCalendar) simcal_get_calendar( (string|int|object|WP_Post) $object ); 

Returns (null|SimpleCalendarAbstractsCalendar)

Parameters (1)

0. $object (string|int|object|WP_Post)
The object.

Usage

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

Defined (1)

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

/includes/functions/shared.php