WC_Coupon::get_amount( string $context = 'view' )
Get coupon amount.
Description Description
Parameters Parameters
- $context
-
(Optional) What the value is for. Valid values are 'view' and 'edit'.
Default value: 'view'
Return Return
(float)
Source Source
File: includes/class-wc-coupon.php
public function get_amount( $context = 'view' ) { return wc_format_decimal( $this->get_prop( 'amount', $context ) ); }
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |