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_Admin_AddOns::get_features()

Retrieve a list of ‘featured’ addons for use on the general settings screen Excludes already available products from current site’s activations


Return Return

(array)


Top ↑

Source Source

File: includes/admin/class.llms.admin.addons.php

	 * Retrieve a list of addons for use on the All section
	 *
	 * @return   array
	 * @since    7.5.0
	 * @version  7.5.0
	 */
	private function get_all() {

		$all = array();

		$addons = $this->data['items'];

		foreach ( $addons as $addon ) {
			// Exclude third-party Addons from the All section.
			if ( in_array( 'third-party', array_keys( $addon['categories'] ), true ) ) {
					continue;
			}
			$all[] = $addon;
		}

		return $all;

	}

	/**
	 * Retrieve a list of 'featured' addons for use on the general settings screen
	 * Excludes already available products from current site's activations
	 *
	 * @return   array
	 * @since    3.22.0


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.