Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Add_On::lookup_add_on( string $lookup_key, string $lookup_val )
Locate an add-on by a key/val pair
Description Description
Loads add-ons via llms_get_add_ons()
and loops through the items list to find an addon specified by the key/val pair.
Parameters Parameters
- $lookup_key
-
(Required) Key found within the add-on item. EG: "id" or "update_file".
- $lookup_val
-
(Required) Value of the key to match.
Return Return
(array|false) Returns the add-on data array of false
if no found.
Source Source
File: includes/models/model.llms.add-on.php
Changelog Changelog
Version | Description |
---|---|
4.21.3 | Introduced. |