WPCF7_Submission::add_consent()
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() WPCF7 Submission::add consent CF7 5.9.8
public function add_consent( $name, $conditions ) { $this->consent[$name] = $conditions; return true; }