Skip to:
Content
Pages
Categories
Search
Top
Bottom

Turning off emails


  • davidnator
    Participant

    @davidnator

    Hi, according to the FTC’s webpage for the Can-Spam Act, there are some legal requirements for commercial emails. Because of this, I want to disable buddypress emails, at least for now. Is there a way to do this besides unticking the activity and notifications in the buddypress settings? Also, can you do this while still preserving some non-commercial emails such as those for password-resets and account activation?

    Thank you for your help,
    David

    P.S. Here is the link to the FTC’s website: https://www.ftc.gov/tips-advice/business-center/guidance/can-spam-act-compliance-guide-business

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

  • shanebp
    Moderator

    @shanebp

    This should stop emails about new messages:

    // stop new message notification emails
    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 );
    }

    You should be able to use the same approach for other BP emails.


    davidnator
    Participant

    @davidnator

    Hey, thanks so much for the code shane! Will you let me implement it into my commercial website? Also, I’m not very good with php so how would this work for other BP emails?

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