BP_LearnDash_Admin_Integration_Tab::registerCourseTab()
Register BuddyPress for LearnDash related settings
Description
Source
File: bp-integrations/learndash/bp-admin-learndash-tab.php
public function registerCourseTab() { $this->current_section = 'course'; $this->add_section( 'bp_ld_course_tab-buddypress', __('Profiles', 'buddyboss') ); $this->add_checkbox_field( 'courses_visibility', __('My Courses Tab', 'buddyboss'), [ 'input_text' => __('Display "Courses" tab in profiles', 'buddyboss'), 'input_description' => __( 'Adds a tab to the logged in member\'s profile displaying all courses they are enrolled in, and a matching link in the profile dropdown. If any certificates have been created, adds a sub-tab showing all certificates the member has earned.', 'buddyboss' ), ] ); // My Courses Tab View Tutorial button. $this->add_field( 'bp-tutorial-my-courses-tab', '', array( $this, 'bp_profiles_tutorial_my_courses' ) ); }
Changelog
Version | Description |
---|---|
BuddyBoss 1.2.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.