Tribe__Tickets__Editor__Template__Overwrite::remove_classic_views()

Remove the actions and filters used to attach the classic editor views associated with tickets.

Contents


Source

File: src/Tribe/Editor/Template/Overwrite.php

	public function remove_classic_views() {
		if ( ! ( $this->ticket_type instanceof Tribe__Tickets__Tickets ) ) {
			return;
		}

		$ticket_form_hook = $this->ticket_type->get_ticket_form_hook();
		if ( ! empty( $ticket_form_hook ) ) {
			remove_action( $ticket_form_hook, array(
				$this->ticket_type,
				'maybe_add_front_end_tickets_form',
			), 5 );
		}

		remove_filter( 'the_content', array(
			$this->ticket_type,
			'front_end_tickets_form_in_content',
		), 11 );
	}

Top ↑

Changelog

Changelog
Version Description
4.9 Introduced.