Hooks::filter_attendee_registration_checkout_url( string $url )

Filters the checkout URL for Attendee Registration.


Parameters #

$url

(string) (Required) Checkout URL.


Top ↑

Return #

(string)


Top ↑

Source #

File: src/Tickets_Plus/Commerce/Attendee_Registration/Hooks.php

	public function filter_attendee_registration_checkout_url( $url ) {
		if ( \TEC\Tickets\Commerce::PROVIDER !== tribe_get_request_var( tribe_tickets_get_provider_query_slug() ) ) {
			return $url;
		}

		$url = home_url( '/' );
		$url = add_query_arg( Checkout::$url_query_arg, true, $url );
		$url = add_query_arg( Cart::$url_query_arg, Cart::REDIRECT_MODE, $url );
		$url = add_query_arg( Cart::$cookie_query_arg, tribe_get_request_var( Cart::$cookie_query_arg ), $url );

		return $url;
	}

Top ↑

Changelog #

Changelog
Version Description
5.3.0 Introduced.