Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to get Buddypress Avatar of logged in user (1.5.6)

  • Profile photo of Lux1200
    Lux1200
    Member

    @lux1200

    I’m sure this has been asked before but for the the life of me can’t get it working. I am trying to get the Buddypress avatar of the current logged in user to replace the WP avatar in comments. Every function I’ve tried seems to be undefined or deprecated, I’ve been searching through the bp-core functions but can’t find it (it’s probably right in front of me though)! Anyone know the right way to do this?

    Thanks.

Viewing 1 replies (of 1 total)
  • Profile photo of Roger Coathup
    Roger Coathup
    Participant

    @rogercoathup

    bp_member_avatar()
    bp_get_member_avatar()

    They are defined in bp-members-template.php , and take a number of optional arguments including user ID.

Viewing 1 replies (of 1 total)
  • The topic ‘How to get Buddypress Avatar of logged in user (1.5.6)’ is closed to new replies.
Skip to toolbar