The plugin provides action hooks and filter hooks for developers who need to run custom code when events happen or modify plugin behavior.
These fire after the plugin processes a webhook event. Use them to run custom code – like syncing data to a CRM, sending custom notifications, or updating external systems.
wcls_order_createdwcls_order_refundedwcls_subscription_createdwcls_subscription_updatedwcls_subscription_cancelledwcls_subscription_pausedwcls_subscription_unpausedwcls_subscription_resumedwcls_subscription_expiredwcls_subscription_payment_successwcls_subscription_payment_failedwcls_subscription_payment_recoveredwcls_license_key_createdwcls_license_key_updated
All action hooks receive three parameters: $order (WooCommerce order object), $event_data (Lemon Squeezy event data), and $full_payload (complete webhook payload). The license key hooks receive $order, $license_key (or $event_data), and $event_data.
Use these to customize plugin behavior without editing plugin files.
| Filter | What It Does | Default |
|---|---|---|
wcls_button_color |
Change the checkout button color | #7C3AED |
wcls_is_available |
Control when the payment gateway shows up | true (when enabled) |
wcls_icon |
Swap the gateway icon shown at checkout | Credit card icons |
wcls_checkout_expiry_seconds |
How long checkout URLs stay valid | 1800 (30 minutes) |
wcls_default_variant_id |
Set a fallback variant ID when none is configured | Empty string |