WooCommerce Code Reference

EvaluateSuggestion
in package

Evaluates the spec and returns the evaluated suggestion.

Table of Contents

evaluate()  : object
Evaluates the spec and returns the suggestion.
evaluate_specs()  : array<string|int, mixed>
Evaluates the specs and returns the visible suggestions.

Methods

evaluate_specs()

Evaluates the specs and returns the visible suggestions.

public static evaluate_specs(array<string|int, mixed> $specs) : array<string|int, mixed>
Parameters
$specs : array<string|int, mixed>

payment suggestion spec array.

Return values
array<string|int, mixed>The visible suggestions and errors.