• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

My Monkey Do

A Log of Coding Solutions

  • Home
  • Web Hosts
  • Tools
  • About

Buddypress User Ids

November 16, 2012 by Webhead

Buddypress has several methods to get the user ids.  This post attempts to clarify the differences between these:

  • bp_current_user_id – Exactly the same as bp_displayed_user_id.  This is possibly an old, now renamed, method.
  • bp_loggedin_user_id – The buddypress logged in user id.
  • bp_displayed_user_id – this will return the user id of the user that you are looking at on a page, like someone else’s user profile.
  • current_user_id – This is the wordpress user id.

Filed Under: Coding Tagged With: buddypress, php, wordpress

Primary Sidebar

Topics

502 apache apple bluehost bootstrap buddypress chrome cloudways cms css debug drupal eCommerce firebug firefox git goDaddy google google analytics google maps hacked hosting htaccess html html 5 icons IE crap image iPad iPhone javascript jquery linux localization mac os x ms sql mysql open source optimize php tinymce wordpress wpengine yii youtube




Categories

  • Coding
  • Off the Shelf
  • Plugins
  • Random Thoughts
  • Server Stuff
  • Tools