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_Integration_Buddypress::populate_profile_endpoints()
Populate list of endpoints from LifterLMS Dashboard Settings.
Return Return
(void)
Source Source
File: includes/integrations/class.llms.integration.buddypress.php
private function populate_profile_endpoints() { $exclude_llms_eps = array( 'dashboard', 'signout' ); $exclude_fields = array( 'nav_item', 'url', 'paginate' ); $endpoints = array(); foreach ( LLMS_Student_Dashboard::get_tabs() as $ep_key => $endpoint ) { if ( ! in_array( $ep_key, $exclude_llms_eps, true ) ) { $endpoints[ $ep_key ] = array_diff_key( $endpoint, array_flip( $exclude_fields ) ); } } /** * Filter profile endpoints. * * Modify the LifterLMS dashboard endpoints which can be added to the BuddyPress profile page as custom tabs. * * @since 6.3.0 * * @param array $endpoints Array of endpoint data. */ $this->endpoints = apply_filters( 'llms_buddypress_profile_endpoints', $endpoints ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.3.0 | Introduced. |