Tribe__Tickets__Commerce__PayPal__Main::get_checkout_url( null|int $post_id = null )

Get Tribe Commerce Checkout URL.


Parameters

$post_id

(null|int) (Optional) Post ID for the cart.

Default value: null


Top ↑

Return

(string) Tribe Commerce Checkout URL.


Top ↑

Source

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

	public function get_checkout_url( $post_id = null ) {
		if ( empty( $post_id ) ) {
			// There is currently no non-post specific checkout.
			return '';
		}

		$checkout_url = $this->get_cart_url( $post_id );

		/**
		 * Allow filtering of the PayPal Checkout URL.
		 *
		 * @since 4.11.0
		 *
		 * @param string $checkout_url PayPal Checkout URL.
		 */
		return apply_filters( 'tribe_tickets_tribe-commerce_checkout_url', $checkout_url );
	}

Top ↑

Changelog

Changelog
Version Description
4.11.0 Introduced.