Tribe__Tickets__Tickets::get_ticket_move_link( int $post_id, object $ticket = null )

Returns the html for the move ticket link


Parameters

$post_id

(int) (Required) ID of parent "event" post

$ticket

(object) (Optional) Ticket object

Default value: null


Top ↑

Return

(string) HTML link | void HTML link


Top ↑

Source

File: src/Tribe/Tickets.php

		public function get_ticket_move_link( $post_id, $ticket = null ) {
			if ( empty( $ticket ) ) {
				return;
			}

			$button_text = ( 'Tribe__Tickets__RSVP' === $ticket->provider_class ) ? __( 'Move RSVP', 'event-tickets' ) : __( 'Move Ticket', 'event-tickets' ) ;

			$move_url = $this->get_ticket_move_url( $post_id, $ticket );

			if ( empty( $move_url ) ) {
				return;
			}

			$move_link = sprintf( '<a href="%1$s" class="thickbox tribe-ticket-move-link">' . esc_html( $button_text ) . '</a>', $move_url );

			return $move_link;
		}

Top ↑

Changelog

Changelog
Version Description
4.6 Introduced.