LLMS_Helper_Admin_Add_Ons::filter_get_current_section_content( array $content, string $section )
Add “mine” tab content
Parameters Parameters
- $content
-
(array) (Required) Default items to display.
- $section
-
(string) (Required) Current tab slug.
Return Return
(array)
Source Source
File: libraries/lifterlms-helper/includes/class-llms-helper-admin-add-ons.php
public function filter_get_current_section_content( $content, $section ) { if ( 'mine' === $section ) { $mine = llms_helper_get_available_add_ons(); $addons = llms_get_add_ons(); if ( ! is_wp_error( $addons ) && isset( $addons['items'] ) ) { foreach ( $addons['items'] as $item ) { if ( in_array( $item['id'], $mine ) ) { $content[] = $item; } } } } return $content; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.2 | Unknown. |
3.0.0 | Introduced. |