\WP_Stager_Integration\Calendar::render_event(int $event_id)

Description

Renders a single event.

Parameters:

ParameterTypeDescription
$event_id int The Stager event ID

Information

Fileclass-calendar.php line 940

Full Code

/**
 * Renders a single event.
 *
 * @param int   $event_id   The Stager event ID
 */
public static function render_event( $event_id ) {

    // Type casting
    $event_id = (string) $event_id;

    // Get data
    $event = Event::get_event_by_id( $event_id );

    self::render_calendar( array(
        'scope'  => 'event',
        'events' => array( $event ),
    ) );
}

💡 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!