WPCF7_ConfigValidator::validate()publicCF7 1.0

The main validation runner.

{} Это метод класса: WPCF7_ConfigValidator{}

Хуки из метода

Возвращает

true|false. True if there is no error detected.

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

$WPCF7_ConfigValidator = new WPCF7_ConfigValidator();
$WPCF7_ConfigValidator->validate();

Код WPCF7_ConfigValidator::validate() CF7 5.6.3

public function validate() {
	$this->errors = array();

	$this->validate_form();
	$this->validate_mail( 'mail' );
	$this->validate_mail( 'mail_2' );
	$this->validate_messages();
	$this->validate_additional_settings();

	do_action( 'wpcf7_config_validator_validate', $this );

	return $this->is_valid();
}