BpGroupCourses::prepareComponentOptions()
Arguments to pass into the buddypress group extension class
Description
Source
File: bp-integrations/learndash/buddypress/components/BpGroupCourses.php
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | 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.