Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,005
- How-to & Troubleshooting
- 129,529
- Creating & Extending
- 25,790
- Requests & Feedback
- 9,496
- Third Party Plugins
- 9,784
- Showcase
- 3,316
- Ideas
- 1,397
- Miscellaneous
- 9,170
-
current_userid is set when you are viewing a users profile – so it is the user id of the member currently being viewed. If you are not viewing a user profile, it is 0.
loggedin_userid is the user id of the user logged in.
bp_is_home() does a if ( current_userid == loggedin_userid ) return true; else return false;
So bp_is_home() will return true if you are viewing your own profile.
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS