WordPress at a glance
function is not described

WC_Webhook::get_secret() public WC 2.2.0

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

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

Hooks from the method

String. Nothing.


$WC_Webhook = new WC_Webhook();
$WC_Webhook->get_secret( $context );
What the value is for. Valid values are 'view' and 'edit'.


Since 2.2.0 Introduced.

Code of WC_Webhook::get_secret() WC 5.3.0

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