WordPress at Your Fingertips
function is not described

wc_get_webhook() WC 1.0

Get webhook.

No Hooks.

Return

WC_Webhook|null.

Usage

wc_get_webhook( $id );
$id(int|WC_Webhook) (required)
Webhook ID or object.

Code of wc_get_webhook() WC 6.1.1

function wc_get_webhook( $id ) {
	$webhook = new WC_Webhook( $id );

	return 0 !== $webhook->get_id() ? $webhook : null;
}