\WP_Stager_Integration\Calendar::component_event(array $event, array $args = array()): void
\WP_Stager_Integration\Calendar::component_event(array $event, array $args = array()): voidDescription
Renders a single event.
Parameters:
| Parameter | Type | Description |
|---|---|---|
$event | array | The Stager event array |
$args | array | (Optional) Additional arguments to pass to the component template. |
Returns:
void
Information
| File | class-calendar.php line 1972 |
|---|
Full Code
/**
* Renders a single event.
*
* @param array $event The Stager event array
* @param array $args (Optional) Additional arguments to pass to the component template.
*
* @return void
*/
public static function component_event( $event, $args = array() ) {
// Type casting
$event = (array) $event;
$args = (array) $args;
self::render_calendar_component( 'event', array(
'event' => $event,
'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!

