wc_get_coupon_type( string $type = '' )
Get a coupon type’s name.
Description Description
Parameters Parameters
- $type
-
(Optional) Coupon type.
Default value: ''
Return Return
(string)
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 ] : ''; }