Disable Email for One Message


Home Forums Front End PM PRO Disable Email for One Message

This topic is: Resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6419
    Craig Tucker
    Participant

    I am using fep_send_message() to send a message via an add_action item in function.php. I want to disable email for this message only. Within my function I am using–

    `add_filter( ‘fep_enable_email_send’, ‘__return_false’ );

    However the email continues to send anyway. Do I need to include the message ID in some way? Do I have to initiate it somehow?

    #6427
    shamim
    Keymaster

    You can add remove_action( 'fep_action_message_after_send', array( Fep_Emails::init(), 'save_send_email'), 20, 2 ); just before using fep_send_message()

    #6434
    Craig Tucker
    Participant

    Works great. Thanks so much.

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

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.