WordPress at Your Fingertips
function is not described

WC_Webhook::enqueue() public WC 2.2.0

Enqueue the hooks associated with the webhook.

{} It's a method of the class: WC_Webhook{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Webhook = new WC_Webhook();
$WC_Webhook->enqueue();

Changelog

Since 2.2.0 Introduced.

Code of WC_Webhook::enqueue() WC 6.1.1

public function enqueue() {
	$hooks = $this->get_hooks();
	$url   = $this->get_delivery_url();

	if ( is_array( $hooks ) && ! empty( $url ) ) {
		foreach ( $hooks as $hook ) {
			add_action( $hook, array( $this, 'process' ) );
		}
	}
}