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)
Source Source
File: includes/admin/class.llms.admin.addons.php
private function get_features() { $features = array(); // Addons to exclude. // Helper will filter this based on existing activations. $exclude = apply_filters( 'llms_admin_addon_features_exclude_ids', array() ); $cats = array( 'e-commerce', 'bundles', 'resources', 'courses', 'courses', ); foreach ( $cats as $cat ) { $addon = $this->get_product_from_cat( $cat, $exclude ); if ( $addon ) { $features[] = $addon; $exclude[] = $addon['id']; } if ( 3 === count( $features ) ) { return $features; } } return $features; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.22.0 | Introduced. |