This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
BP_Attachment_Avatar::get_user_id()
Get the user id to set its avatar.
Description
Return
(integer) The user ID.
Source
File: bp-core/classes/class-bp-attachment-avatar.php
318 319 320 321 322 323 324 325 326 327 328 329 330 331 | private function get_user_id() { $bp = buddypress(); $user_id = 0; if ( bp_is_user() ) { $user_id = bp_displayed_user_id(); } if ( ! empty ( $bp ->members->admin->user_id ) ) { $user_id = $bp ->members->admin->user_id; } return $user_id ; } |
Changelog
Version | Description |
---|---|
BuddyPress 2.3.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.