wc_get_coupon_type( string $type = '' )

Get a coupon type’s name.


Description Description


Parameters Parameters

$type

(Optional) Coupon type.

Default value: ''


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/wc-coupon-functions.php

function wc_get_coupon_type( $type = '' ) {
	$types = wc_get_coupon_types();
	return isset( $types[ $type ] ) ? $types[ $type ] : '';
}


Top ↑

User Contributed Notes User Contributed Notes

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