WC_Coupon::set_used_by( array $used_by )

Set which users have used this coupon.


Description Description


Parameters Parameters

$used_by

(Required) List of user IDs.


Top ↑

Source Source

File: includes/class-wc-coupon.php

	public function set_used_by( $used_by ) {
		$this->set_prop( 'used_by', array_filter( $used_by ) );
	}

Top ↑

Changelog 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.