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::find_by_name( string $name = '' )
Find a discount in the database with the name supplied.
Description Description
Parameters Parameters
- $name
-
(Optional) Discount name.
Default value: ''
Return Return
(WP_Post) Post instance of the discount.
Source Source
File: includes/class-edd-discount.php
Changelog Changelog
Version | Description |
---|---|
2.7 | Introduced. |