Tribe__Events__Community__Tickets__Event_Form::add_payment_options_button()

Adds a “button” to the ticket form linking to the payment options page – if split payments are enabled


Return #

(void)


Top ↑

Source #

File: src/Tribe/Event_Form.php

	public function add_payment_options_button() {
		if ( ! tribe( 'community-tickets.payouts' )->is_split_payments_enabled() ) {
			return;
		}

		printf(
			esc_html__(
				'%1$sPayment options%2$s',
				'tribe-events-community-tickets'
			),
			'<a
				href="'
				. esc_url( $this->main->routes['payment-options']->url() )
				. '" class="button-secondary tribe-button-icon tribe-button-icon-edit">',
			'</a>'
		);
	}

Top ↑

Changelog #

Changelog
Version Description
4.7.0 Introduced.