woocommerce_persistent_cart_enabled хук-фильтрWC 1.0

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
-

Где вызывается хук

WC_Cart_Session::persistent_cart_update()
woocommerce_persistent_cart_enabled
WC_Cart_Session::persistent_cart_destroy()
woocommerce_persistent_cart_enabled
WC_Cart_Session::get_saved_cart()
woocommerce_persistent_cart_enabled
wc_load_persistent_cart()
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 ) ) {

Где используется хук в WooCommerce

Использование не найдено.