WC_Coupon::get_amount( string $context = 'view' )

Get coupon amount.

Description Description

Parameters Parameters


(Optional) What the value is for. Valid values are 'view' and 'edit'.

Default value: 'view'

Top ↑

Return Return


Top ↑

Source Source

File: includes/class-wc-coupon.php

	public function get_amount( $context = 'view' ) {
		return wc_format_decimal( $this->get_prop( 'amount', $context ) );

Top ↑

Changelog Changelog

Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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