Tribe__Tickets__Tickets::get_asset_localize_data_for_cart_checkout_urls()

Get JS localize data for cart/checkout URLs.


Return

(array) JS localize data for cart/checkout URLs.


Top ↑

Source

File: src/Tribe/Tickets.php

		public static function get_asset_localize_data_for_cart_checkout_urls() {
			$cart_urls     = [];
			$checkout_urls = [];

			/**
			 * Allow providers to add their own checkout URL to the localized list.
			 *
			 * @since 4.11.0
			 *
			 * @param array $checkout_urls An array to add urls to.
			 */
			$checkout_urls = apply_filters( 'tribe_tickets_checkout_urls', $checkout_urls );

			/**
			 * Allow providers to add their own cart URL to the localized list.
			 *
			 * @since 4.11.0
			 *
			 * @param array $cart_urls An array to add urls to.
			 */
			$cart_urls = apply_filters( 'tribe_tickets_cart_urls', $cart_urls );

			return [
				'cart'     => $cart_urls,
				'checkout' => $checkout_urls,
			];
		}

Top ↑

Changelog

Changelog
Version Description
4.11.0.1 Introduced.