edd_discounts_shortcode( array $atts, string $content = null )
Discounts shortcode
Description Description
Displays a list of all the active discounts. The active discounts can be configured from the Discount Codes admin screen.
Parameters Parameters
- $atts
-
(Required) Shortcode attributes
- $content
-
(Optional)
Default value: null
Return Return
(string) $discounts_lists List of all the active discount codes
Source Source
File: includes/shortcodes.php
Changelog Changelog
Version | Description |
---|---|
1.0.8.2 | Introduced. |