Actions reference

lmfwc_event_post_order_license_keys

Estimated reading: 1 minute 990 views

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]
Share this Doc

lmfwc_event_post_order_license_keys

Or copy link

CONTENTS
Scroll to Top