woocommerce_guest_session_to_user_id

woocommerce_guest_session_to_user_id

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.8.8.3

do_action('woocommerce_guest_session_to_user_id') is found 1 times:

  • /includes/class-wc-session-handler.php line 124
    				 *
    				 * @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.
    			if ( time() > $this->_session_expiring ) {
    				$this->set_session_expiration();
    				$this->update_session_timestamp( $this->_customer_id, $this->_session_expiration );