Automattic\WooCommerce\Internal\Admin\Suggestions

PaymentExtensionSuggestionIncentives::has_incentive_provider()publicWC 1.0

Check if a specific payment extension suggestion has an incentive provider registered.

Method of the class: PaymentExtensionSuggestionIncentives{}

No Hooks.

Return

true|false. Whether the suggestion has an incentive provider registered.

Usage

$PaymentExtensionSuggestionIncentives = new PaymentExtensionSuggestionIncentives();
$PaymentExtensionSuggestionIncentives->has_incentive_provider( $suggestion_id ): bool;
$suggestion_id(string) (required)
The suggestion ID.

PaymentExtensionSuggestionIncentives::has_incentive_provider() code WC 9.6.1

public function has_incentive_provider( string $suggestion_id ): bool {
	return null !== $this->get_incentive_instance( $suggestion_id );
}