Tribe__Tickets_Plus__Meta__RSVP::rsvp_render_ari_step( array $args )
Handle rendering the ARI step if ticket has ARI.
Contents
Parameters
- $args
-
(array) (Required) The list of step template arguments.
- 'rsvp_id'
(int) The RSVP ticket ID. - 'post_id'
(int) The ticket ID. - 'rsvp'
(Tribe__Tickets__Ticket_Object) The RSVP ticket object. - 'step'
(null|string) Which step being rendered. - 'must_login'
(boolean) Whether login is required to register. - 'login_url'
(string) The site login URL. - 'threshold'
(int) The RSVP ticket threshold.
- 'rsvp_id'
Return
(array)
Source
File: src/Tribe/Meta/RSVP.php
public function rsvp_render_ari_step( array $args ) { // If not trying to make RSVP, return as normal. if ( 'success' === $args['step'] || 'going' !== $args['step'] ) { return $args; } // If no meta on ticket, return as normal. if ( ! $this->rsvp_has_meta( $args['rsvp'] ) ) { return $args; } // Override the step as ARI. $args['step'] = 'ari'; return $args; }
Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |