Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Private messages beetween 2 users sent to admin e-mail


  • SrGato29
    Participant

    @jonadeis

    Buddypress VersiĆ³n 2.6.1.1
    Wordpress Version 4.5.4

    My problem is that when 2 users begin a conversation using the buddypress messages component, the email goes to theirs emails, but if they press reply instead of going to the website, they send the message to the administrator, so How I can stop the reply to the admin? or maybe a way to stop the emails outside the website, so that way the only way that they can communicate is with buddypress.

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

  • shanebp
    Moderator

    @shanebp

    You’ll need custom code for that.
    For example: http://www.buddyboss.com/product/buddyboss-reply-by-email/


    SrGato29
    Participant

    @jonadeis

    Thanks for the response, so that plugin will allow me to fix that problem? and they will respond to the users and not to the admin? but it’s to expensive… if there is no other option , there would be some way to block those messages? so that way they can comunicate only with the website.


    SrGato29
    Participant

    @jonadeis

    I found this add_filter( 'bp_email_use_wp_mail', '__return_true' ); which disable the template but is there a function that disable the email so that way users don’t receive any messages


    ckchaudhary
    Participant

    @ckchaudhary

    Hi there,

    http://www.buddyboss.com/product/buddyboss-reply-by-email/ this plugin lets your users communicate directly from their inbox.

    If you rather want to just stop those emails completely, you can try the following code

    add_action( 'messages_message_sent', 'unhook_messages_notification_new_message', 9 );
    function unhook_messages_notification_new_message(){
        remove_action( 'messages_message_sent', 'messages_notification_new_message', 10 );
    }

    That should work.


    SrGato29
    Participant

    @jonadeis

    Thank you, the function works

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