WPCF7_SWV_Rule::matches()
Returns true if this rule matches the given context.
Метод класса: WPCF7_SWV_Rule{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$WPCF7_SWV_Rule = new WPCF7_SWV_Rule(); $WPCF7_SWV_Rule->matches( $context );
- $context(массив) (обязательный)
- Context.
Код WPCF7_SWV_Rule::matches() WPCF7 SWV Rule::matches CF7 5.7.5.1
public function matches( $context ) { $field = $this->get_property( 'field' ); if ( ! empty( $context['field'] ) ) { if ( $field and ! in_array( $field, (array) $context['field'], true ) ) { return false; } } return true; }