Contactable\SWV

FileRule::matchespublicCF7 1.0

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

Хуков нет.

Возвращает

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

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

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

Код FileRule::matches() CF7 6.1.4

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

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

	return true;
}