WPCF7_Submission::create_posted_data_hash()privateCF7 1.0

Creates a hash string based on posted data, the remote IP address, contact form location, and window of time.

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

Хуков нет.

Возвращает

Строку. 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() CF7 5.9.3

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;
}