\WP_Stager_Integration\Calendar::component_events(array[] $events, array $args = array()): void
\WP_Stager_Integration\Calendar::component_events(array[] $events, array $args = array()): voidDescription
Renders a list of events.
Parameters:
| Parameter | Type | Description |
|---|---|---|
$events | array[] | Ana array of Stager event arrays |
$args | array | (Optional) Additional arguments to pass to the component template. |
Returns:
void
Information
| File | class-calendar.php line 1952 |
|---|
Full Code
/**
* Renders a list of events.
*
* @param array[] $events Ana array of Stager event arrays
* @param array $args (Optional) Additional arguments to pass to the component template.
*
* @return void
*/
public static function component_events( $events, $args = array() ) {
// Type casting
$events = (array) $events;
$args = (array) $args;
self::render_calendar_component( 'events', array(
'events' => $events,
'component_args' => $args,
) );
}💡 If you ever get stuck or have a question, please check our FAQs, our Free Integration Service, our paid Full Integration Service, or reach out to us!

Get WP Stager Integration
🎁 Limited offer: Use code WELCOME26 to get your first month for free!

