edd_get_discount_by( string $field = '', mixed $value = '' )

Retrieve discount by a given field


Description Description


Parameters Parameters

$field

(Optional) The field to retrieve the discount with.

Default value: ''

$value

(Optional) The value for $field.

Default value: ''


Top ↑

Return Return

(mixed) object|bool EDD_Discount object or false if not found.


Top ↑

Source Source

File: includes/discount-functions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.7 Updated to use EDD_Discount object
2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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