Skip to:
Content
Pages
Categories
Search
Top
Bottom

Disable public message


  • bertl11
    Participant

    @bertl11

    Hello,

    how can I disable the public message option or button?
    I want the users only to send private messages.

    Thanks for your help!

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

  • shanebp
    Moderator

    @shanebp

    Try adding this to your theme/functions.php or bp-custom.php

    add_filter('bp_get_send_public_message_button', '__return_false');


    bertl11
    Participant

    @bertl11

    Hi shanebp,

    thanks a lot for your help!!
    I inserted the code into functions.php and it worked!
    You helped me a lot.

    One more question: Where do I find bp-custom.php? I searched the bp folders but couldn’t find the file.

    Thanks


    Henry Wright
    Moderator

    @henrywright

    Where do I find bp-custom.php? I searched the bp folders but couldn’t find the file.

    You won’t have a bp-custom.php file by default so you will need to create one inside the plugins folder. So for example:

    wp-content/plugins/bp-custom.php

    The contents of the file should be:

    <?php
    
    // Put your code snippets here

    bertl11
    Participant

    @bertl11

    OK, I see. Thanks for your help and answer.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable public message’ is closed to new replies.
Skip to toolbar