WPCF7_Turnstile::get_secret │ public │ CF7 1.0

Returns the secret key that is paired with the given sitekey.

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

Хуки из метода

Возвращает

null. Ничего (null).

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

$WPCF7_Turnstile = new WPCF7_Turnstile();
$WPCF7_Turnstile->get_secret( $sitekey );
$sitekey(обязательный)
.

Код WPCF7_Turnstile::get_secret() CF7 6.1.7

public function get_secret( $sitekey ) {
	$sitekeys = (array) $this->sitekeys;

	$secret = $sitekeys[$sitekey] ?? '';

	return apply_filters( 'wpcf7_turnstile_secret', $secret );
}