Tribe__Tickets__Attendee_Registration__Main::is_using_shortcode()

Returns whether or not the user is on a page using the attendee registration shortcode


Return

(boolean)


Top ↑

Source

File: src/Tribe/Attendee_Registration/Main.php

	public function is_using_shortcode() {
		global $wp_query;

		return ! empty( $wp_query->queried_object->post_content ) && has_shortcode( $wp_query->queried_object->post_content, 'tribe_attendee_registration' );
	}

Top ↑

Changelog

Changelog
Version Description
4.10.2 Introduced.