Alert: 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 Description
Return Return
(integer) The user ID.
Source Source
File: bp-core/classes/class-bp-attachment-avatar.php
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 Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |