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