WPCF7_SWV_FileRule::matches()publicCF7 1.0

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

Хуков нет.

Возвращает

null. Ничего.

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

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

Код WPCF7_SWV_FileRule::matches() CF7 5.7.4

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

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

	return true;
}