WC_Webhook::set_secret()
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() WC Webhook::set secret code WC 9.5.1
public function set_secret( $secret ) { $this->set_prop( 'secret', $secret ); }