WC_Webhook::get_resource
Get the resource for the webhook, e.g. order.
Method of the class: WC_Webhook{}
Hooks from the method
Returns
String.
Usage
$WC_Webhook = new WC_Webhook(); $WC_Webhook->get_resource();
Changelog
| Since 2.2.0 | Introduced. |
WC_Webhook::get_resource() WC Webhook::get resource code WC 10.4.3
public function get_resource() {
$topic = explode( '.', $this->get_topic() );
return apply_filters( 'woocommerce_webhook_resource', $topic[0], $this->get_id() );
}