LLMS_Add_On::__construct( string|array $addon = array(), string $lookup_key = 'id' )
Constructor
Description Description
Parameters Parameters
- $addon
-
(Optional) Add-on data array or a string (such as an ID or update file path) used to lookup the addon.
Default value: array()
- $lookup_key
-
(Optional) If $addon is a string, this determines how to lookup the addon from the available list of addons.
Default value: 'id'
Return Return
(void)
Source Source
File: includes/models/model.llms.add-on.php
Changelog Changelog
Version | Description |
---|---|
4.21.3 | Move lookup logic to its own private method: lookup_add_on() . |
3.22.0 | Introduced. |