WC_Webhook::get_secret( string $context = 'view' )

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


Description Description


Parameters Parameters

$context

(Optional) What the value is for. Valid values are 'view' and 'edit'.

Default value: 'view'


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/class-wc-webhook.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.2.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.