Automattic\WooCommerce\Internal\Admin\Suggestions\Incentives

Incentive::get_incentives()protectedWC 1.0

Get eligible incentives.

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

Хуков нет.

Возвращает

Массив. List of eligible incentives.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_incentives( $country_code ): array;
$country_code(строка) (обязательный)
The business location country code to get incentives for.

Код Incentive::get_incentives() WC 9.6.1

abstract protected function get_incentives( string $country_code ): array;