WC_Webhook::get_hooks()
Get the hook names for the webhook.
Description Description
Return Return
(array)
Source Source
File: includes/class-wc-webhook.php
public function get_hooks() {
if ( 'action' === $this->get_resource() ) {
$hooks = array( $this->get_event() );
} else {
$hooks = $this->get_topic_hooks( $this->get_topic() );
}
return apply_filters( 'woocommerce_webhook_hooks', $hooks, $this->get_id() );
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.2.0 | Introduced. |