BpGroupCourses::prepareComponentOptions()
Arguments to pass into the buddypress group extension class
Description
Source
File: bp-integrations/learndash/buddypress/components/BpGroupCourses.php
protected function prepareComponentOptions() { $tabName = apply_filters('bp_ld_sync/courses_group_tab_name', $this->tabLabel()); $tabSlug = apply_filters('bp_ld_sync/courses_group_tab_slug', 'courses'); $tabPosition = apply_filters('bp_ld_sync/courses_group_tab_position', 15); // learndash_is_group_leader_user return [ 'name' => $tabName, 'slug' => $tabSlug, 'nav_item_position' => $tabPosition, 'access' => apply_filters('bp_ld_sync/courses_group_tab_enabled', $this->showTabOnView()), 'screens' => [ 'create' => [ 'enabled' => apply_filters('bp_ld_sync/courses_group_tab_enabled/screen=create', $this->showTabOnCreate()), 'name' => apply_filters('bp_ld_sync/courses_group_tab_name/screen=create', $tabName), 'slug' => apply_filters('bp_ld_sync/courses_group_tab_slug/screen=create', $tabSlug), 'position' => apply_filters('bp_ld_sync/courses_group_tab_position/screen=create', $tabPosition), // 'screen_callback' => '', // 'save_callback' => '', // ?? ], 'edit' => [ 'enabled' => apply_filters('bp_ld_sync/courses_group_tab_enabled/screen=edit', true), 'name' => apply_filters('bp_ld_sync/courses_group_tab_name/screen=edit', $tabName), 'slug' => apply_filters('bp_ld_sync/courses_group_tab_slug/screen=edit', $tabSlug), 'position' => apply_filters('bp_ld_sync/courses_group_tab_position/screen=edit', $tabPosition), // 'screen_callback' => '', // 'save_callback' => '', // ?? // 'submit_text' => '' ], 'admin' => array( 'metabox_context' => 'normal', 'metabox_priority' => 'core', ), ] ]; }
Changelog
Version | Description |
---|---|
BuddyBoss 1.0.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.