Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide role in the forum


  • yu
    Participant

    @yudesign

    Hi there,

    is there a way to hide the role of the moderator/admin in the forum? I don’t want people to know which role one has.

    Thanks for your help!
    yu

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

  • Robin W
    Moderator

    @robin-w

    yes, put this in your functions file

    function hide_role ($args) {
    $args['show_role'] = false ;
    Return $args ;
    }
    add_filter ('bbp_before_get_reply_author_link_parse_args', 'hide_role') ;
    
    

    come back if you need any further help !


    yu
    Participant

    @yudesign

    Thanks for this. Works just great. Just right now I found out that the author’s name in the forum is linked to his profile. How do I delete the link? Unfortunately my programming knowledge is not good enough to find it out by myself using the codex.


    Robin W
    Moderator

    @robin-w

    Try this – it should work

    Function hide_author_url () {
    $retval='' ;
    return $retval ;
    }
    
    add_filter( 'bbp_get_topic_author_url', 'hide_author_url' );
    add_filter( 'bbp_get_reply_author_url', 'hide_author_url' );

    yu
    Participant

    @yudesign

    Works. Now I think everything’s fine. Thank you!


    Robin W
    Moderator

    @robin-w

    Great – glad you’re fixed !


    SMukta
    Participant

    @smukta

    Where can I find the functions file?


    Robin W
    Moderator

    @robin-w


    SMukta
    Participant

    @smukta

    Thank you!!!


    SMukta
    Participant

    @smukta

    It worked!!! you are the best! Thank you.


    Robin W
    Moderator

    @robin-w

    great – glad you are fixed !


    Richiard
    Participant

    @nguyendungntd21

    Thank you, Robin.

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