Automattic\WooCommerce\Admin\API\Reports\Orders

Controller::get_coupons()protectedWC 1.0

Get coupons column export value.

Метод класса: Controller{}

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_coupons( $coupons );
$coupons(array) (required)
Coupons from report row.

Code of Controller::get_coupons() WC 7.1.0

protected function get_coupons( $coupons ) {
	return implode( ', ', wp_list_pluck( $coupons, 'code' ) );
}