Skip to:
Content
Pages
Categories
Search
Top
Bottom

WP User Info in bbpress


  • Apokh
    Participant

    @apokh

    Okay, one more try now 🙂

    There is one thing I want do do, so I have 2 questions according to that:

    1.) (how) is it possible (I guess it is) to get WP userdata for display in bbpress? Lets say the First Name of the WordPress User Information.
    Must be something get_userdata( <strong>bbpressuser</strong>) ?!

    2.) As I learned, the Userinfos (Avatar, Role etc) of the Reply must be somewhere in loop-single-topic.php – but I really don´t find it.

    Thanks in advance. Hope someone can help with that for the german forums (i´m from germany) are really dead :/

    Best regards
    Apokh

Viewing 2 replies - 1 through 2 (of 2 total)

  • Robin W
    Moderator

    @robin-w

    The user-info for both topics and replies is in ‘loop-single-reply.php’ starts on line 41, and the hook for actions is ‘bbp_theme_after_reply_author_details’


    Apokh
    Participant

    @apokh

    Okay for anyone, searching this

    For Example to add the firstname from the WP User Info add
    <?php $user_info = get_userdata( bbp_get_reply_author_id() ); echo $user_info->first_name . "\n";?>
    in ‘loop-single-reply.php’ somewhere between Line 41 and 59.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar