Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to remove IP addresses from bbPress?


  • Mycelus
    Participant

    @mycelus

    Hello. I used the following CSS to remove IP addresses from bbPress. I know this only shows to admins, but I don’t want em there. For some reason, now they are magically showing up again…

    /*Removes IP address from bbPress*/

    .bbp-author-ip {
    display:none !important;
    }

    Any ideas..?

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

  • Robin W
    Moderator

    @robin-w

    if it worked before, then something has changed.

    If you want to stop it using the template then create a ‘bbpress’ folder in the root of your theme, and copy

    wp-content/pluigins/bbpress/templates/default/bbpress/loop-single-reply.php across to this new folder.

    The edit to remove the code that displays this – lines 47 to 55 have an if(keymaster) statement that display this info


    Vinod Dalvi
    Participant

    @vinod-dalvi

    You can remove ip address by using the below custom code in the functions.php file of your child theme or in another custom plugin.

    function vvd_no_view_ip( $author_ip, $r, $args ){
    	return __return_empty_string();	
    }
    add_filter('bbp_get_author_ip','vvd_no_view_ip', 10, 3 );

    wreckcox
    Participant

    @wreckcox

    Thank you for adding.

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