woocommerce_coupon_sort

woocommerce_coupon_sort

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_coupon_sort') is found 1 times:

  • /includes/class-wc-cart-totals.php line 386
    					break;
    			}
    
    			// Allow plugins to override the default order.
    			$coupon->sort = apply_filters( 'woocommerce_coupon_sort', $coupon->sort, $coupon );
    		}
    
    		uasort( $this->coupons, array( $this, 'sort_coupons_callback' ) );
    	}
    
    	/**