edd_set_discounts_cache( $hash, $data )
Store found discounts with the hash.
Description Description
This is a non-persistent cache and uses a PHP global.
Parameters Parameters
- $hash
-
(Required) string The hash of the arguments from edd_get_discounts.
- $data
-
(Required) array The data to store for this hash.
Source Source
File: includes/discount-functions.php
Changelog Changelog
Version | Description |
---|---|
2.8.7 | Introduced. |