\WP_Stager_Integration\Component::render_event_subtitle(): void

Description

Render the event subtitle component.

Returns:

void

Information

Fileclass-component.php line 107

Full Code

/**
 * Render the event subtitle component.
 *
 * @return void
 */
public static function render_event_subtitle() {

    // Get data
    $event          = (array) (Event::get_single_event_data() ?: array());
    $event_subtitle = (string) (Event::get_subtitle( $event ) ?: '');

    // Render the component
    self::render( 'event-subtitle', 'template-parts/event-page', array(
        'subtitle' => $event_subtitle,
    ) );
}

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