Automattic\WooCommerce\Internal\Admin
WcPayWelcomePage::get_incentive
Get the WooPayments incentive details, if available.
Метод класса: WcPayWelcomePage{}
Хуков нет.
Возвращает
Массив|null. The incentive details. Null if there is no incentive available.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_incentive(): ?array;
Код WcPayWelcomePage::get_incentive() WcPayWelcomePage::get incentive WC 10.3.5
private function get_incentive(): ?array {
return $this->suggestion_incentives->get_incentive(
PaymentsExtensionSuggestions::WOOPAYMENTS,
WC()->countries->get_base_country(),
self::INCENTIVE_TYPE,
true
);
}