WC_Coupon::get_used_by( string $context = 'view' )
Get records of all users who have used the current coupon.
Description Description
Parameters Parameters
- $context
-
(Optional) What the value is for. Valid values are 'view' and 'edit'.
Default value: 'view'
Return Return
(array)
Source Source
File: includes/class-wc-coupon.php
public function get_used_by( $context = 'view' ) { return $this->get_prop( 'used_by', $context ); }
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |