Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to disable the logged-in user information

  • @leeshiz

    Participant

    I have set up my bbPress as no registration is required, but another plugin needs registration to use the service.
    Is it possible to disable the user information on bbPress for users who are already logged in wordpress?

    The theme (Astra) has a child theme, the bbPress child theme is not installed yet.
    Wordpress is ver.5.9, bbPress is 2.6.9.

    Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • @robin-w

    Moderator

    do you mean the profile?

    @leeshiz

    Participant

    Thank you for your reply! Yes, I meant the profile.
    When logged-in users post to the forum, their names will show on topics automatically.
    I want to delete the name from the Topic/Reply and make the forum completely anonymous.
    Also, is it possible to set the “Name” field on Topic/Reply form for logged-in users?
    Thank you.

    @robin-w

    Moderator

    untested (as I am on holiday without test server access), but try

    add_filter ('bbp_get_reply_author_link' , 'rew_return_null' ) ;
    add_filter ('bbp_get_topic_author_link' , 'rew_return_null' ) ;
    add_filter ('bbp_get_author_link' , 'rew_return_null' ) ;
    
    function rew_return_null () {
    return ;
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    @leeshiz

    Participant

    Thank you for quick reply during the holidays!
    It worked for deleting profile from Topic/Reply!

    @robin-w

    Moderator

    so leaves it where on the forum?
    or what remaining issues do you have?

    @leeshiz

    Participant

    Is it possible to add a new ‘nickname’ input field for all users (logged-in/non-logged-in) and show the nickname instead of the deleted profile name?
    Thank you.

    @robin-w

    Moderator

    yes, but beyond free help

    @leeshiz

    Participant

    Ok, Thank you very much!
    I will be back if we really need the function.

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