WPCF7_Submission::posted_data_hash_tick()privateCF7 1.0

Returns the time-dependent variable for hash creation.

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

Хуков нет.

Возвращает

float. Float value rounded up to the next highest integer.

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

// private - только в коде основоного (родительского) класса
$result = $this->posted_data_hash_tick();

Код WPCF7_Submission::posted_data_hash_tick() CF7 5.9.3

private function posted_data_hash_tick() {
	return ceil( time() / ( HOUR_IN_SECONDS / 2 ) );
}