WordPress at a glance
function is not described

wc_get_webhook() WC 1.0

Get webhook.

No Hooks.

Return

WC_Webhook|null. Nothing.

Usage

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

Code of wc_get_webhook() WC 5.3.0

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

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