Changeset 5232 for trunk/includes/extend/buddypress/functions.php
- Timestamp:
- 12/23/2013 09:29:19 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/extend/buddypress/functions.php
r5161 r5232 13 13 14 14 /** BuddyPress Helpers ********************************************************/ 15 16 /** 17 * Return bbPress's component name/ID ('forums' by default) 18 * 19 * This is used primarily for Notifications integration. 20 * 21 * @since bbPress (r5232) 22 * @return string 23 */ 24 function bbp_get_component_name() { 25 26 // Use existing ID 27 if ( !empty( bbpress()->extend->buddypress->id ) ) { 28 $retval = bbpress()->extend->buddypress->id; 29 30 // Use default 31 } else { 32 $retval = 'forums'; 33 } 34 35 return apply_filters( 'bbp_get_component_name', $retval ); 36 } 15 37 16 38 /**
Note: See TracChangeset
for help on using the changeset viewer.