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.


Parameters

$query

(WP_Query) (Required) The WordPress query.


Top ↑

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' ) );
		}
	}

Top ↑

Changelog

Changelog
Version Description
4.9 Introduced.