WC_Webhook::enqueue()
Enqueue the hooks associated with the webhook.
Description Description
Source Source
File: includes/class-wc-webhook.php
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' ) );
}
}
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.2.0 | Introduced. |