WC_Webhook::get_topic()
Get the webhook topic, e.g. order.created.
Метод класса: WC_Webhook{}
Хуки из метода
Возвращает
Строку
.
Использование
$WC_Webhook = new WC_Webhook(); $WC_Webhook->get_topic( $context );
- $context(строка)
- What the value is for. Valid values are 'view' and 'edit'.
По умолчанию: 'view'
Список изменений
С версии 2.2.0 | Введена. |
Код WC_Webhook::get_topic() WC Webhook::get topic WC 8.3.1
public function get_topic( $context = 'view' ) { return apply_filters( 'woocommerce_webhook_topic', $this->get_prop( 'topic', $context ), $this->get_id() ); }