• Hi,

    in our contact form, submissions should not be sent to the admin email address. I have used the snippet provided for this purpose. However, it ensures that the message is not sent at all. Without the snippet, the message is sent to the admin address without any issues.

    I used this snippet:
    function custom_form_block_recipients( $recipients ) {
    $recipients = ‘other address’;
    return $recipients;
    }
    add_filter( ‘form_block_recipients’, ‘custom_form_block_recipients’ );

    Thanks,
    Manja

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Matthias Kittsteiner

    (@kittmedia)

    Hi Manja,

    the filter expects an array as return value. So instead of doing $recipients = 'other address';, do this: $recipients = [?'other address' ];

    Best regards,
    Matthias

    Thread Starter Manja Neumann

    (@tippl)

    Of course, it’s an array! Sorry for the inconvenience and thanks for the quick solution.

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