Documentation
Getting Started
- Introduction
- Setup
- General Settings
- WooCommerce
- Tools
- Analytics Reports
- Dashboard
- License
- Generator
- Activations
- Applications
- Installed On
- API Logs
- WooCommerce Products
- Customer License Manager Flow
Integrations
For Developer
Actions Reference
lmfwc_event_post_order_license_keys
DESCRIPTION
This action fires after license keys have been sold. The hook fires for license keys that have been generated, as well as license keys that have been sold from stock.
PARAMETERS
| Name | Type | Description |
| $args | array | Associative array containing two keys: orderId and licenses. |
USAGE
php]add_action('lmfwc_event_post_order_license_keys', function($args) {
$orderId = $args['orderId'];
$licenses = $args['licenses'];
foreach ($licenses as $license) {
// Do something
}
});[/php]