EDD_Discount::update_status( string $new_status = 'active' )
Update the status of the discount.
Description Description
Parameters Parameters
- $new_status
-
(Optional) New status (default: active)
Default value: 'active'
Return Return
(bool) If the status been updated or not.
Source Source
File: includes/class-edd-discount.php
Changelog Changelog
Version | Description |
---|---|
2.7 | Introduced. |