WC_Webhook::get_secret()publicWC 2.2.0

Get the secret used for generating the HMAC-SHA256 signature.

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

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

Возвращает

Строку.

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

$WC_Webhook = new WC_Webhook();
$WC_Webhook->get_secret( $context );
$context(строка)
What the value is for. Valid values are 'view' and 'edit'.
По умолчанию: 'view'

Список изменений

С версии 2.2.0 Введена.

Код WC_Webhook::get_secret() WC 8.7.0

public function get_secret( $context = 'view' ) {
	return apply_filters( 'woocommerce_webhook_secret', $this->get_prop( 'secret', $context ), $this->get_id() );
}