Tribe__Tickets__Attendee_Registration__Template::set_page_content( WP_Query $query )
This is where the magic happens where we run some ninja code that hooks the query to resolve to an events template.
Contents
Parameters
- $query
-
(WP_Query) (Required) The WordPress query.
Source
File: src/Tribe/Attendee_Registration/Template.php
public function set_page_content( $query ) {
// Bail if we're not on the attendee info page
if ( ! $this->is_on_ar_page() ) {
return;
}
if ( $this->is_main_loop( $query ) ) {
// on the_content, load our attendee info page
add_filter( 'the_content', array( tribe( 'tickets.attendee_registration.view' ), 'display_attendee_registration_page' ) );
}
}
Changelog
| Version | Description |
|---|---|
| 4.9 | Introduced. |