llms_get_add_on( array $addon = array(), string $lookup_key = 'id' )

Instantiate a new LLMS_Add_On


Description Description


Parameters Parameters

$addon

(array) (Optional) add-on data

Default value: array()

$lookup_key

(string) (Optional) if $addon is a string, this determines how to lookup the addon from the available list of addons

Default value: 'id'


Top ↑

Return Return

(obj)


Top ↑

Source Source

File: includes/admin/llms.functions.admin.php

function llms_get_add_on( $addon = array(), $lookup_key = 'id' ) {
	if ( class_exists( 'LLMS_Helper_Add_On' ) ) {
		return new LLMS_Helper_Add_On( $addon, $lookup_key );
	}
	return new LLMS_Add_On( $addon, $lookup_key );
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.22.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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