woocommerce_persistent_cart_enabled
Save the persistent cart when the cart is updated.
Использование
add_filter( 'woocommerce_persistent_cart_enabled', 'wp_kama_woocommerce_persistent_cart_enabled_filter' ); /** * Function for `woocommerce_persistent_cart_enabled` filter-hook. * * @param $true * * @return */ function wp_kama_woocommerce_persistent_cart_enabled_filter( $true ){ // filter... return $true; }
- $true
- -
Где вызывается хук
woocommerce_persistent_cart_enabled
woocommerce_persistent_cart_enabled
woocommerce_persistent_cart_enabled
woocommerce_persistent_cart_enabled
woocommerce/includes/class-wc-cart-session.php 357
if ( get_current_user_id() && apply_filters( 'woocommerce_persistent_cart_enabled', true ) ) {
woocommerce/includes/class-wc-cart-session.php 372
if ( get_current_user_id() && apply_filters( 'woocommerce_persistent_cart_enabled', true ) ) {
woocommerce/includes/class-wc-cart-session.php 419
if ( apply_filters( 'woocommerce_persistent_cart_enabled', true ) ) {
woocommerce/includes/wc-cart-functions.php 50
if ( ! $user || ! apply_filters( 'woocommerce_persistent_cart_enabled', true ) ) {