Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,881
- Creating & Extending
- 25,910
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,834
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,184
-
Your code looks good. Which file are you putting it in?
Edit: 2nd thoughts, you may need to rename the function. Try giving it a prefix. For example:
function my_bp_displayed_user_id() {
$theUserID = bp_get_member_user_id();
echo "MemberID: " . $theUserID;
}
add_action( 'bp_directory_members_item', 'my_bp_displayed_user_id' );