Other form recipient than admin

[ad_1]

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]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer