WC_Webhook::get_hooks
Get the hook names for the webhook.
Method of the class: WC_Webhook{}
Hooks from the method
Returns
Array.
Usage
$WC_Webhook = new WC_Webhook(); $WC_Webhook->get_hooks();
Changelog
| Since 2.2.0 | Introduced. |
WC_Webhook::get_hooks() WC Webhook::get hooks code WC 10.7.0
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() );
}