wc_get_webhook( int|WC_Webhook $id )
Get webhook.
Description Description
Parameters Parameters
- $id
-
(Required) Webhook ID or object.
Return Return
(WC_Webhook|null)
Source Source
File: includes/wc-webhook-functions.php
function wc_get_webhook( $id ) { $webhook = new WC_Webhook( $id ); return 0 !== $webhook->get_id() ? $webhook : null; }