icalendar_render_events

Wrapper function for iCalendarReader->render().

Description

icalendar_render_events( (string) $url = '', (array) $args = array() ); 

Parameters (2)

0. $url — Optional. (string) => ''
(default: '')
1. $args — Optional. (array) => array()
(default: widget) or shortcode

Usage

  1. if ( !function_exists( 'icalendar_render_events' ) ) { 
  2. require_once '/_inc/lib/icalendar-reader.php'; 
  3.  
  4. // (default: '') 
  5. $url = ''; 
  6.  
  7. // (default: 'widget') or 'shortcode' 
  8. $args = array(); 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = icalendar_render_events($url, $args); 
  12.  

Defined (1)

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

/_inc/lib/icalendar-reader.php  
  1. function icalendar_render_events( $url = '', $args = array() ) { 
  2. $ical = new iCalendarReader(); 
  3. return $ical->render( $url, $args );