WC_Webhook::get_name()
Get the friendly name for the webhook.
Method of the class: WC_Webhook{}
Hooks from the method
Return
String
.
Usage
$WC_Webhook = new WC_Webhook(); $WC_Webhook->get_name( $context );
- $context(string)
- What the value is for. Valid values are 'view' and 'edit'.
Default: 'view'
Changelog
Since 2.2.0 | Introduced. |
WC_Webhook::get_name() WC Webhook::get name code WC 9.6.0
public function get_name( $context = 'view' ) { return apply_filters( 'woocommerce_webhook_name', $this->get_prop( 'name', $context ), $this->get_id() ); }