WPCF7_Submission::create_posted_data_hash
Creates a hash string based on posted data, the remote IP address, contact form location, and window of time.
Метод класса: WPCF7_Submission{}
Хуков нет.
Возвращает
string. The hash.
Использование
// private - только в коде основоного (родительского) класса $result = $this->create_posted_data_hash( $tick );
- $tick(строка)
- If not specified, result of posted_data_hash_tick() will be used.
По умолчанию:''
Код WPCF7_Submission::create_posted_data_hash() WPCF7 Submission::create posted data hash CF7 6.1.7
private function create_posted_data_hash( $tick = '' ) {
if ( '' === $tick ) {
$tick = $this->posted_data_hash_tick();
}
$hash = wp_hash(
wpcf7_flat_join( array_merge(
array(
$tick,
$this->get_meta( 'remote_ip' ),
$this->get_meta( 'unit_tag' ),
),
$this->posted_data
) ),
'wpcf7_submission'
);
return $hash;
}