WPCF7_Submission::setup_meta_data
Collects meta information about this submission.
Метод класса: WPCF7_Submission{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->setup_meta_data();
Код WPCF7_Submission::setup_meta_data() WPCF7 Submission::setup meta data CF7 6.1.4
private function setup_meta_data() {
$this->meta = array(
'timestamp' => time(),
'remote_ip' => $this->get_remote_ip_addr(),
'remote_port' => wpcf7_superglobal_server( 'REMOTE_PORT' ),
'user_agent' => wpcf7_superglobal_server( 'HTTP_USER_AGENT' ),
'url' => $this->get_request_url(),
'unit_tag' => wpcf7_sanitize_unit_tag(
wpcf7_superglobal_post( '_wpcf7_unit_tag' )
),
'container_post_id' => absint(
wpcf7_superglobal_post( '_wpcf7_container_post' )
),
'current_user_id' => get_current_user_id(),
'do_not_store' => $this->contact_form->is_true( 'do_not_store' ),
);
return $this->meta;
}