• 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

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

apache apple block editor chrome cms css debug eCommerce embed firebug firefox git gmail goDaddy google hosting htaccess html html 5 IE crap image iPad iPhone javascript jquery linux localization mac os x ms sql mysql open source optimize php php 5.3 responsive rest api seo svg tinymce woocommerce wordpress wpengine xss yii youtube




Categories

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