EDD_Discount::add( array $args )
Create a new discount. If the discount already exists in the database, update it.
Description Description
Parameters Parameters
- $args
-
(Required) Discount details.
Return Return
(mixed) bool|int false if data isn't passed and class not instantiated for creation, or post ID for the new discount.
Source Source
File: includes/class-edd-discount.php
Changelog Changelog
Version | Description |
---|---|
2.7 | Introduced. |