Changeset 13759 for trunk/src/bp-activity/screens/groups.php
- Timestamp:
- 03/09/2024 10:46:28 AM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/screens/groups.php
r11885 r13759 12 12 * 13 13 * @since 1.2.0 14 * 15 * @return void 14 16 */ 15 17 function bp_activity_screen_groups() { 16 if ( !bp_is_active( 'groups' ) ) 17 return false; 18 if ( ! bp_is_active( 'groups' ) ) { 19 return; 20 } 18 21 19 22 bp_update_is_item_admin( bp_current_user_can( 'bp_moderate' ), 'activity' ); … … 26 29 do_action( 'bp_activity_screen_groups' ); 27 30 28 /** 29 * Filters the template to load for the "My Groups" screen. 30 * 31 * @since 1.2.0 32 * 33 * @param string $template Path to the activity template to load. 34 */ 35 bp_core_load_template( apply_filters( 'bp_activity_template_groups_activity', 'members/single/home' ) ); 31 $templates = array( 32 /** 33 * Filters the template to load for the "My Groups" screen. 34 * 35 * @since 1.2.0 36 * 37 * @param string $template Path to the activity template to load. 38 */ 39 apply_filters( 'bp_activity_template_groups_activity', 'members/single/home' ), 40 'members/single/index', 41 ); 42 43 bp_core_load_template( $templates ); 36 44 }
Note: See TracChangeset
for help on using the changeset viewer.