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

NameTypeDescription
$argsarrayAssociative array containing two keys: orderId and licenses.

Usage

add_action('lmfwc_event_post_order_license_keys', function($args) { $orderId = $args['orderId']; $licenses = $args['licenses']; foreach ($licenses as $license) { // Do something } });

Stuck or need help? Let us know!Updated on: 09.06.2021