wc_get_webhook( int|WC_Webhook $id )

Get webhook.


Description Description


Parameters Parameters

$id

(Required) Webhook ID or object.


Top ↑

Return Return

(WC_Webhook|null)


Top ↑

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;
}


Top ↑

User Contributed Notes User Contributed Notes

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