WPCF7_ConfigValidator::save()publicCF7 1.0

Saves detected errors as a post meta data.

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

Хуков нет.

Возвращает

null. Ничего.

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

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

Код WPCF7_ConfigValidator::save() CF7 5.6.3

public function save() {
	if ( $this->contact_form->initial() ) {
		return;
	}

	delete_post_meta( $this->contact_form->id(), '_config_errors' );

	if ( $this->errors ) {
		update_post_meta(
			$this->contact_form->id(), '_config_errors', $this->errors
		);
	}
}