WPCF7_ConfigValidator::validate_additional_settings()publicCF7 1.0

Runs error detection for the additional settings section.

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

Хуков нет.

Возвращает

null. Ничего.

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

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

Код WPCF7_ConfigValidator::validate_additional_settings() CF7 5.6.3

public function validate_additional_settings() {
	$deprecated_settings_used =
		$this->contact_form->additional_setting( 'on_sent_ok' ) ||
		$this->contact_form->additional_setting( 'on_submit' );

	if ( $deprecated_settings_used ) {
		return $this->add_error( 'additional_settings.body',
			self::error_deprecated_settings,
			array(
				'link' => self::get_doc_link( 'deprecated_settings' ),
			)
		);
	}
}