PHP Класс Kirki_Active_Callback, kirki

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
evaluate_requirement ( WP_Customize_Setting $object, object $field, array $requirement ) : boolean Figure out whether the current object should be displayed or not.

Описание методов

compare() публичный статический Метод

Compares the 2 values given the condition
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.
Результат boolean whether The comparison has succeded (true) or failed (false).

evaluate() публичный статический Метод

Figure out whether the current object should be displayed or not.
public static evaluate ( WP_Customize_Setting $object ) : boolean
$object WP_Customize_Setting The current field.
Результат boolean