WordPress at Your Fingertips
function is not described

WC_Webhook::set_secret() public WC 2.2.0

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

{} It's a method of the class: WC_Webhook{}

No Hooks.

Return

null. Nothing.

Usage

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

Changelog

Since 2.2.0 Introduced.

Code of WC_Webhook::set_secret() WC 5.9.0

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