WebhookTrait
- Full name:
\BigCommerce\Webhooks\WebhookTrait
Methods
product_webhooks_enabled
Is product webhooks are enabled
public product_webhooks_enabled(): boolcustomer_webhooks_enabled
If customer webhooks are enabled
public customer_webhooks_enabled(): boolmaybe_skip_product_hooks
Should we skip the product hook or no
public maybe_skip_product_hooks(string $hook = '', false $hooks_enabled = false): boolParameters:
| Parameter | Type | Description |
|---|---|---|
$hook | string | |
$hooks_enabled | false |
maybe_skip_customer_hooks
Should we skip the customer hook or no
public maybe_skip_customer_hooks(string $hook = '', false $hooks_enabled = false): boolParameters:
| Parameter | Type | Description |
|---|---|---|
$hook | string | |
$hooks_enabled | false |
is_customer_webhook
Check if it is a customer webhook
public is_customer_webhook(string $hook = ''): boolParameters:
| Parameter | Type | Description |
|---|---|---|
$hook | string |
get_customer_webhooks
Return list of customer webhooks
public get_customer_webhooks(): arrayAutomatically generated on 2025-01-21