Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
EDD_Discount::setup_discount( WP_Post $discount = null )
Setup object vars with discount WP_Post object.
Description Description
Parameters Parameters
- $discount
-
(Optional) WP_Post instance of the discount.
Default value: null
Return Return
(bool) Object var initialisation successful or not.
Source Source
File: includes/class-edd-discount.php
Changelog Changelog
Version | Description |
---|---|
2.7 | Introduced. |