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.


Top ↑

Parameters Parameters

$lookup_key

(string) (Required) Key found within the add-on item. EG: "id" or "update_file".

$lookup_val

(string) (Required) Value of the key to match.


Top ↑

Return Return

(array|false) Returns the add-on data array of false if no found.


Top ↑

Source Source

File: includes/models/model.llms.add-on.php

	/**
	 * Determines if the add-on is licensed
	 *
	 * @since 3.22.0
	 *
	 * @return bool
	 */
	public function is_licensed() {
		return false;
	}

	/**
	 * Locate an add-on by a key/val pair
	 *
	 * Loads add-ons via `llms_get_add_ons()` and loops through the items list
	 * to find an addon specified by the key/val pair.
	 *
	 * @since 4.21.3
	 *
	 * @param string $lookup_key Key found within the add-on item. EG: "id" or "update_file".
	 * @param string $lookup_val Value of the key to match.


Top ↑

Changelog Changelog

Changelog
Version Description
4.21.3 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.