WPCF7_SWV_RequiredRule::matches()publicCF7 1.0

Метод класса: WPCF7_SWV_RequiredRule{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WPCF7_SWV_RequiredRule = new WPCF7_SWV_RequiredRule();
$WPCF7_SWV_RequiredRule->matches( $context );
$context (обязательный)
-

Код WPCF7_SWV_RequiredRule::matches() CF7 5.8

public function matches( $context ) {
	if ( false === parent::matches( $context ) ) {
		return false;
	}

	if ( empty( $context['text'] ) ) {
		return false;
	}

	return true;
}