Tribe__Tickets_Plus__Commerce__WooCommerce__Main::clear_tribe_ar_ticket_updated( mixed $unused_var = null )

Clear the WC session var when we load checkout.


Parameters

$unused_var

(mixed) (Optional) An unused variable we don't need to reference from the hook.

Default value: null


Top ↑

Return

(mixed) The unused variable just as it was passed from the hook.


Top ↑

Source

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

	public function clear_tribe_ar_ticket_updated( $unused_var = null ) {
		if ( ! function_exists( 'WC' ) ) {
			return $unused_var;
		}

		$wc = WC();

		if ( empty( $wc->session ) ) {
			return $unused_var;
		}

		$wc->session->__unset( 'tribe_ar_ticket_updated' );

		return $unused_var;
	}

Top ↑

Changelog

Changelog
Version Description
4.11.0 Introduced.