WC_Webhook::get_resource()
Get the resource for the webhook, e.g. order
.
Description Description
Return Return
(string)
Source Source
File: includes/class-wc-webhook.php
public function get_resource() { $topic = explode( '.', $this->get_topic() ); return apply_filters( 'woocommerce_webhook_resource', $topic[0], $this->get_id() ); }
Changelog Changelog
Version | Description |
---|---|
2.2.0 | Introduced. |