Method | Description | |
---|---|---|
compare ( mixed $value1, mixed $value2, string $operator ) : boolean | Compares the 2 values given the condition | |
evaluate ( WP_Customize_Setting $object ) : boolean | Figure out whether the current object should be displayed or not. |
Method | Description | |
---|---|---|
evaluate_requirement ( WP_Customize_Setting $object, object $field, array $requirement ) : boolean | Figure out whether the current object should be displayed or not. |
public static compare ( mixed $value1, mixed $value2, string $operator ) : boolean | ||
$value1 | mixed | The 1st value in the comparison. |
$value2 | mixed | The 2nd value in the comparison. |
$operator | string | The operator we'll use for the comparison. |
return | boolean | whether The comparison has succeded (true) or failed (false). |