1. Home
  2. Docs
  3. INTERNAL API
  4. Actions reference
  5. lmfwc_event_post_order_license_keys

lmfwc_event_post_order_license_keys

DESCRIPTION

This action fires after license keys have been sold. The hook fires for license keys which have been generated, as well as license keys which 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]

How can we help?