Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to disable the logged-in user information


  • Lee
    Participant

    @leeshiz

    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

    @robin-w

    do you mean the profile?


    Lee
    Participant

    @leeshiz

    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

    @robin-w

    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


    Lee
    Participant

    @leeshiz

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


    Robin W
    Moderator

    @robin-w

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


    Lee
    Participant

    @leeshiz

    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

    @robin-w

    yes, but beyond free help


    Lee
    Participant

    @leeshiz

    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