Template_Modifications::render_show_to_ticket_controls( TribeEventsVirtualCompatibilityEvent_TicketsWP_Post $event = null,  $disabled = false, boolean $echo = true )

Render the virtual event show-to ticket attendee controls.


Parameters

$event

(TribeEventsVirtualCompatibilityEvent_TicketsWP_Post) (Optional) The event post we are editing.

Default value: null

$echo

(boolean) (Optional) To echo or not to echo, that is the question.

Default value: true


Top ↑

Return

(string|false) Either the final content HTML or false if no template could be found.


Top ↑

Source

File: src/Tribe/Compatibility/Event_Tickets/Template_Modifications.php

	public function render_show_to_ticket_controls( $event = null, $disabled = false, $echo = true ) {
		$event = tribe_get_event( $event );

		if ( ! $event instanceof \WP_Post ) {
			return false;
		}

		return $this->template->template(
			'virtual-metabox/container/compatibility/event-tickets/show-to-tickets',
			[
				'disabled'   => $disabled,
				'post'       => $event,
				'metabox_id' => Metabox::$id,
			],
			$echo
		);
	}

Top ↑

Changelog

Changelog
Version Description
1.0.4 Introduced.