WPCF7_ContactForm::hashpublicCF7 1.0

Retrieves the random hash string tied to this contact form.

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

Хуков нет.

Возвращает

Строку. Hash string unique to this contact form.

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

$WPCF7_ContactForm = new WPCF7_ContactForm();
$WPCF7_ContactForm->hash( $length );
$length(int)
Length of hash string.
По умолчанию: 7

Код WPCF7_ContactForm::hash() CF7 6.1.6

public function hash( $length = 7 ) {
	return substr( $this->hash, 0, absint( $length ) );
}