Plugin Directory

Changeset 3227167


Ignore:
Timestamp:
01/23/2025 04:43:04 AM (14 months ago)
Author:
pushalert
Message:

Removed WooCommerce deprecated method

Location:
pushalert-web-push-notifications/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pushalert-web-push-notifications/trunk/pushalert.php

    r2975548 r3227167  
    66 * Author: PushAlert
    77 * Author URI: https://pushalert.co
    8  * Version: 2.8.1
     8 * Version: 2.8.2
    99 */
    1010
     
    4646        add_action('woocommerce_cart_item_removed', 'pa_custom_updated_cart');
    4747        add_action('woocommerce_after_cart_item_quantity_update', 'pa_custom_updated_cart');
    48         add_action('woocommerce_before_cart_item_quantity_zero', 'pa_custom_cart_quantity_zero');
    4948        add_action('woocommerce_cart_is_empty', 'pa_custom_updated_cart');
    5049        add_action('woocommerce_order_status_changed', 'pa_custom_order_completed', 10, 3);
     
    936935        }
    937936    }
    938 }
    939 
    940 function pa_custom_cart_quantity_zero($cart_item_key){
    941 
    942     $total_items = WC()->cart->get_cart_contents_count();
    943     if($total_items-1>0){
    944         //pa_clear_abandoned_cart();
    945         pa_init_abandoned_cart($total_items-1);
    946     }
    947     //else case is handled by woocommerce_cart_is_empty
    948937}
    949938
  • pushalert-web-push-notifications/trunk/readme.txt

    r3181003 r3227167  
    55Requires at least: 2.7
    66Tested up to: 6.7
    7 Stable tag: 2.8.1
     7Stable tag: 2.8.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.