Changeset 6249 for trunk/bp-core/bp-core-template.php
- Timestamp:
- 08/08/2012 05:13:00 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-template.php
r6198 r6249 752 752 } 753 753 754 /** 755 * Get the id of the currently displayed user 756 * 757 * @uses apply_filters() Filter 'bp_displayed_user_id' to change this value 758 * @return int 759 */ 760 function bp_displayed_user_id() { 761 762 static $id = 0; 763 764 if ( empty( $id ) ) { 765 global $bp; 766 $id = !empty( $bp->displayed_user->id ) ? $bp->displayed_user->id : 0; 767 } 768 769 return apply_filters( 'bp_displayed_user_id', $id ); 770 } 771 772 /** 773 * Get the id of the currently logged-in user 774 * 775 * @uses apply_filters() Filter 'bp_loggedin_user_id' to change this value 776 * @return int 777 */ 778 function bp_loggedin_user_id() { 779 780 static $id = 0; 781 782 if ( empty( $id ) ) { 783 global $bp; 784 $id = !empty( $bp->loggedin_user->id ) ? $bp->loggedin_user->id : 0; 785 } 786 787 return apply_filters( 'bp_loggedin_user_id', $id ); 788 } 789 754 790 /** is_() functions to determine the current page *****************************/ 755 791
Note: See TracChangeset
for help on using the changeset viewer.