WordPress at Your Fingertips
function is not described

WC_Webhook::get_resource() public WC 2.2.0

Get the resource for the webhook, e.g. order.

{} It's a method of the class: WC_Webhook{}

Hooks from the method

Return

String.

Usage

$WC_Webhook = new WC_Webhook();
$WC_Webhook->get_resource();

Changelog

Since 2.2.0 Introduced.

Code of WC_Webhook::get_resource() WC 5.9.0

public function get_resource() {
	$topic = explode( '.', $this->get_topic() );

	return apply_filters( 'woocommerce_webhook_resource', $topic[0], $this->get_id() );
}