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


Top ↑

Source Source

File: includes/class-edd-discount.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.7 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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