auto-patch 638-dev-dev01-2024-05-14T20_44_36
This commit is contained in:
@@ -108,6 +108,20 @@ class WC_Session_Handler extends WC_Session {
|
||||
$this->_dirty = true;
|
||||
$this->save_data( $guest_session_id );
|
||||
$this->set_customer_session_cookie( true );
|
||||
|
||||
/**
|
||||
* Fires after a customer has logged in, and their guest session id has been
|
||||
* deleted with its data migrated to a customer id.
|
||||
*
|
||||
* This hook gives extensions the chance to connect the old session id to the
|
||||
* customer id, if the key is being used externally.
|
||||
*
|
||||
* @since 8.8.0
|
||||
*
|
||||
* @param string $guest_session_id The former session ID, as generated by `::generate_customer_id()`.
|
||||
* @param int $customer_id The Customer ID that the former session was converted to.
|
||||
*/
|
||||
do_action( 'woocommerce_guest_session_to_user_id', $guest_session_id, $this->_customer_id );
|
||||
}
|
||||
|
||||
// Update session if its close to expiring.
|
||||
|
||||
Reference in New Issue
Block a user