WPCF7_Submission::add_consent()publicCF7 1.0

Adds user consent data to this submission.

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

Хуков нет.

Возвращает

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

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

$WPCF7_Submission = new WPCF7_Submission();
$WPCF7_Submission->add_consent( $name, $conditions );
$name(строка) (обязательный)
Field name.
$conditions(строка) (обязательный)
Conditions of consent.

Код WPCF7_Submission::add_consent() CF7 5.9.8

public function add_consent( $name, $conditions ) {
	$this->consent[$name] = $conditions;
	return true;
}