Tribe__Tickets_Plus__Commerce__WooCommerce__Cart::get_checkout_url()

Get WooCommerce Checkout URL.


Return

(string) WooCommerce Checkout URL.


Top ↑

Source

File: src/Tribe/Commerce/WooCommerce/Cart.php

	public function get_checkout_url() {
		$checkout_url = wc_get_checkout_url();

		/** @var \Tribe__Tickets_Plus__Commerce__WooCommerce__Main $ticket_provider */
		$ticket_provider = tribe( 'tickets-plus.commerce.woo' );

		$checkout_url = add_query_arg( 'provider', $ticket_provider::ATTENDEE_OBJECT, $checkout_url );

		/**
		 * Allow filtering of the WooCommerce Checkout URL.
		 *
		 * @since 4.11.0
		 *
		 * @param string $checkout_url WooCommerce Checkout URL.
		 */
		$checkout_url = apply_filters( 'tribe_tickets_plus_woo_checkout_url', $checkout_url );

		return $checkout_url;
	}

Top ↑

Changelog

Changelog
Version Description
4.12.0 Stop adding the 'provider' parameter to the checkout URL, was causing conflicts with payment gateways.
4.11.0 Introduced.