Tribe__Tickets_Plus__Commerce__WooCommerce__Main::clear_tribe_ar_ticket_updated( mixed $unused_var = null )
Clear the WC session var when we load checkout.
Contents
Parameters
- $unused_var
-
(mixed) (Optional) An unused variable we don't need to reference from the hook.
Default value: null
Return
(mixed) The unused variable just as it was passed from the hook.
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;
}
Changelog
| Version | Description |
|---|---|
| 4.11.0 | Introduced. |