EDD_Discount::__construct( $_id_or_code_or_name = false, bool $by_code = false, bool $by_name = false )
Constructor.
Description Description
Parameters Parameters
-
(Required) int|string $_id_or_code_or_name Discount id/code/name.
- $by_code
-
(Optional) Whether identifier passed was a discount code.
Default value: false
- $by_name
-
(Optional) Whether identifier passed was a discount name.
Default value: false
Source Source
File: includes/class-edd-discount.php
Changelog Changelog
Version | Description |
---|---|
2.7 | Introduced. |