Dev Resources

  • Home
  • Reference
  • BuddyX Theme
  • Functions
  • Hooks
  • Classes
Filter by type:
Search
Browse: Home / Reference / includes/class-wc-cart-session.php

WC_Cart_Session::init()

Method: Register methods for this object on the appropriate WordPress hooks.

Source: includes/class-wc-cart-session.php:47

Used by 0 functions | Uses 0 functions

WC_Cart_Session::get_cart_from_session()

Method: Get the cart data from the PHP session and store it in class variables.

Source: includes/class-wc-cart-session.php:71

Used by 0 functions | Uses 11 functions

woocommerce_pre_remove_cart_item_from_session

Filter Hook: Allow 3rd parties to validate this item before it’s added to cart and add their own notices.

Source: includes/class-wc-cart-session.php:127

Used by 1 function | Uses 0 functions

woocommerce_cart_item_removed_message

Filter Hook: Filter message about item removed from the cart.

Source: includes/class-wc-cart-session.php:142

Used by 1 function | Uses 0 functions

WC_Cart_Session::destroy_cart_session()

Method: Destroy cart session data.

Source: includes/class-wc-cart-session.php:196

Used by 0 functions | Uses 1 function

WC_Cart_Session::maybe_set_cart_cookies()

Method: Will set cart cookies if needed and when possible.

Source: includes/class-wc-cart-session.php:211

Used by 0 functions | Uses 1 function

WC_Cart_Session::set_session()

Method: Sets the php session data for the cart and coupons.

Source: includes/class-wc-cart-session.php:224

Used by 0 functions | Uses 2 functions

WC_Cart_Session::get_cart_for_session()

Method: Returns the contents of the cart in an array without the ‘data’ element.

Source: includes/class-wc-cart-session.php:240

Used by 3 functions | Uses 0 functions

WC_Cart_Session::persistent_cart_update()

Method: Save the persistent cart when the cart is updated.

Source: includes/class-wc-cart-session.php:254

Used by 1 function | Uses 1 function

WC_Cart_Session::persistent_cart_destroy()

Method: Delete the persistent cart permanently.

Source: includes/class-wc-cart-session.php:269

Used by 0 functions | Uses 0 functions
1 2 Next »
Proudly powered by WordPress