• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Easy Digital Downloads a2z

Easy Digital Downloads a2z

Easy Digital Downloads a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Files / includes/discount-functions.php


Lines:

1 to 100 of 140
<?php

/**
 * Discount Functions
 *
 * @package     EDD
 * @subpackage  Functions
 * @copyright   Copyright (c) 2015, Pippin Williamson
 * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
 * @since       1.0
 */

// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit;


/* function edd_get_discounts() – Get Discounts */

/* function edd_has_active_discounts() – Has Active Discounts */

/* function edd_get_discount() – Get Discount. */

/* function edd_get_discount_by_code() – Get Discount By Code. */

/* function edd_get_discount_by() – Retrieve discount by a given field */

/* function edd_store_discount() – Stores a discount code. If the code already exists, it updates it, otherwise
it creates a new one. */

/* function edd_remove_discount() – Deletes a discount code. */

/* function edd_update_discount_status() – Updates a discount’s status from one status to another. */

/* function edd_discount_exists() – Checks to see if a discount code already exists. */

/* function edd_is_discount_active() – Checks whether a discount code is active. */

/* function edd_get_discount_code() – Retrieve the discount code. */

/* function edd_get_discount_start_date() – Retrieve the discount code start date. */

/* function edd_get_discount_expiration() – Retrieve the discount code expiration date. */

/* function edd_get_discount_max_uses() – Retrieve the maximum uses that a certain discount code. */

/* function edd_get_discount_uses() – Retrieve number of times a discount has been used. */

/* function edd_get_discount_min_price() – Retrieve the minimum purchase amount for a discount. */

/* function edd_get_discount_amount() – Retrieve the discount amount. */

/* function edd_get_discount_type() – Retrieve the discount type */

/* function edd_get_discount_excluded_products() – Retrieve the products the discount canot be applied to. */

/* function edd_get_discount_product_reqs() – Retrieve the discount product requirements. */

/* function edd_get_discount_product_condition() – Retrieve the product condition. */

/* function edd_get_discount_status_label() – Retrieves the discount status label. */

/* function edd_is_discount_not_global() – Check if a discount is not global. */

/* function edd_is_discount_expired() – Checks whether a discount code is expired. */

/* function edd_is_discount_started() – Checks whether a discount code is available to use yet (start date). */

/* function edd_is_discount_maxed_out() – Is Discount Maxed Out. */

/* function edd_discount_is_min_met() – Checks to see if the minimum purchase amount has been met. */

/* function edd_discount_is_single_use() – Is the discount limited to a single use per customer? */

/* function edd_discount_product_reqs_met() – Checks to see if the required products are in the cart */

/* function edd_is_discount_used() – Checks to see if a user has already used a discount. */

/* function edd_is_discount_valid() – Check whether a discount code is valid (when purchasing). */

/* function edd_get_discount_id_by_code() – Retrieves a discount ID from the code. */

/* function edd_get_discounted_amount() – Get Discounted Amount. */

/* function edd_increase_discount_usage() – Increases the use count of a discount code. */

/* function edd_decrease_discount_usage() – Decreases the use count of a discount code. */

/* function edd_format_discount_rate() – Format Discount Rate */

/* function edd_set_cart_discount() – Set the active discount for the shopping cart */

/* function edd_unset_cart_discount() – Remove an active discount from the shopping cart */

/* function edd_unset_all_cart_discounts() – Remove all active discounts */

/* function edd_get_cart_discounts() – Retrieve the currently applied discount */

/* function edd_cart_has_discounts() – Check if the cart has any active discounts applied to it */

/* function edd_get_cart_discounted_amount() – Retrieves the total discounted amount on the cart */
[1] [2] Next »

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      File name: includes/discount-functions.php
      Plugin ref: Easy Digital Downloads
      Version: 2.11.6
      Deprecated?: No
      API Letters: D,F,I,P

      Published: 26th November 2019 | Last updated: 26th November 2019

      Primary Sidebar

      Information

      File name: includes/discount-functions.php
      Plugin ref: Easy Digital Downloads
      Version: 2.11.6
      Deprecated?: No
      API Letters: D,F,I,P

      includes

      Footer

      Easy Digital Downloads a2z
      Easy Digital Downloads a2z
      Easy Digital Downloads a2z
      WordPress 5.9.3
      WordPress a2z
      WordPress core a2z
      Genesis Theme Framework a2z
      Jetpack a2z
      WordPress develop tests
      Easy Digital Downloads a2z
      WooCommerce a2z
      Yoast SEO a2z
      WordPress Blocks

      Site:  edd.wp-a2z.org
      © Copyright Easy Digital Downloads a2z 2014-2022. All rights reserved.


      Website designed and developed by Herb Miller
      Proudly powered by WordPress and oik plugins

      • Home
      • Blog
      • Sitemap
      • Sites