WC_Webhook::get_event()publicWC 2.2.0

Get the event for the webhook, e.g. created.

Метод класса: WC_Webhook{}

Хуки из метода

Возвращает

Строку.

Использование

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

Список изменений

С версии 2.2.0 Введена.

Код WC_Webhook::get_event() WC 8.7.0

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

	return apply_filters( 'woocommerce_webhook_event', isset( $topic[1] ) ? $topic[1] : '', $this->get_id() );
}