WC_Webhook::set_secret()publicWC 2.2.0

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

Method of the class: WC_Webhook{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Webhook = new WC_Webhook();
$WC_Webhook->set_secret( $secret );
$secret(string) (required)
Secret.

Changelog

Since 2.2.0 Introduced.

WC_Webhook::set_secret() code WC 8.6.1

public function set_secret( $secret ) {
	$this->set_prop( 'secret', $secret );
}