Automattic\WooCommerce\Admin\API\Reports

DataStore::get_included_coupons()protectedWC 1.0

Returns comma separated ids of included coupons, based on query arguments from the user.

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

Хуков нет.

Возвращает

Строку.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_included_coupons( $query_args, $field );
$query_args(массив) (обязательный)
Parameters supplied by the user.
$field(строка)
Field name in the parameter list.
По умолчанию: 'coupon_includes'

Код DataStore::get_included_coupons() WC 8.7.0

protected function get_included_coupons( $query_args, $field = 'coupon_includes' ) {
	return $this->get_filtered_ids( $query_args, $field );
}