Automattic\WooCommerce\Internal\Admin\Suggestions

PaymentsExtensionSuggestionIncentives::has_incentive_providerpublicWC 1.0

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

Method of the class: PaymentsExtensionSuggestionIncentives{}

No Hooks.

Returns

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

Usage

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

PaymentsExtensionSuggestionIncentives::has_incentive_provider() code WC 10.3.3

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