Automattic\WooCommerce\Internal\Admin\Suggestions
PaymentExtensionSuggestionIncentives::has_incentive_provider()
Check if a specific payment extension suggestion has an incentive provider registered.
Метод класса: PaymentExtensionSuggestionIncentives{}
Хуков нет.
Возвращает
true|false
. Whether the suggestion has an incentive provider registered.
Использование
$PaymentExtensionSuggestionIncentives = new PaymentExtensionSuggestionIncentives(); $PaymentExtensionSuggestionIncentives->has_incentive_provider( $suggestion_id ): bool;
- $suggestion_id(строка) (обязательный)
- The suggestion ID.
Код PaymentExtensionSuggestionIncentives::has_incentive_provider() PaymentExtensionSuggestionIncentives::has incentive provider WC 9.6.1
public function has_incentive_provider( string $suggestion_id ): bool { return null !== $this->get_incentive_instance( $suggestion_id ); }