\WP_Stager_Integration\Component::render_ticket_shop_widget_order(array $args = array()): void

Description

Render the Stager "advanced" order widget component.

Parameters:

ParameterTypeDescription
$args['widget_options'] array Array of options to pass to the widget initialization function.

Returns:

void

Information

Fileclass-component.php line 724

Full Code

/**
 * Render the Stager "advanced" order widget component.
 *
 * @param array $args {
 *     (Optional) Arguments to pass to the widget.
 *
 *     @type array $widget_options Array of options to pass to the widget initialization function.
 * }
 *
 * @return void
 */
public static function render_ticket_shop_widget_order( $args = array() ) {

    // Get data
    $has_feature_ticket_shops = (bool) Options::has_ticket_shops();

    // Bail if feature is not enabled
    if ( ! $has_feature_ticket_shops ) {
        return;
    }

    // Render the component
    self::render( 'order', 'template-parts/shop-widgets', $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!