Tribe__Tickets__Commerce__PayPal__Main::do_metabox_advanced_options( int $post_id, int $ticket_id )

Renders the advanced fields in the new/edit ticket form.

Using the method, providers can add as many fields as they want, specific to their implementation.


Parameters

$post_id

(int) (Required)

$ticket_id

(int) (Required)


Top ↑

Source

File: src/Tribe/Commerce/PayPal/Main.php

	public function do_metabox_advanced_options( $post_id, $ticket_id ) {
		$provider = __CLASS__;

		echo '<div id="' . sanitize_html_class( $provider ) . '_advanced" class="tribe-dependent" data-depends="#' . sanitize_html_class( $provider ) . '_radio" data-condition-is-checked>';

		if ( ! tribe_is_frontend() ) {
			$this->do_metabox_sku_options( $post_id, $ticket_id );
		}

		/**
		 * Allows for the insertion of additional content into the ticket edit form - advanced section
		 *
		 * @since 4.6
		 *
		 * @param int Post ID
		 * @param string the provider class name
		 */
		do_action( 'tribe_events_tickets_metabox_edit_ajax_advanced', $post_id, $provider );

		echo '</div>';
	}

Top ↑

Changelog

Changelog
Version Description
4.7 Introduced.