LLMS_Coupon::get_formatted_discount_type()
Get the discount type for human reading and allow translation
Return Return
(string)
Source Source
File: includes/models/model.llms.coupon.php
public function get_formatted_discount_type() { switch ( $this->get_discount_type() ) { case 'percent': return __( 'Percentage Discount', 'lifterlms' ); break; case 'dollar': return sprintf( _x( '%s Discount', 'flat rate coupon discount', 'lifterlms' ), get_lifterlms_currency_symbol() ); break; } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |