Automattic\WooCommerce\Admin\API\Reports\Orders
Controller::get_coupons()
Get coupons column export value.
Метод класса: Controller{}
Хуков нет.
Возвращает
Строку
.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_coupons( $coupons );
- $coupons(массив) (обязательный)
- Coupons from report row.
Код Controller::get_coupons() Controller::get coupons WC 9.7.1
protected function get_coupons( $coupons ) { return implode( ', ', wp_list_pluck( $coupons, 'code' ) ); }