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.


Top ↑

Return Return

(mixed) bool|int false if data isn't passed and class not instantiated for creation, or post ID for the new discount.


Top ↑

Source Source

File: includes/class-edd-discount.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.7 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.