apply_filters ( 'grunion_should_send_email', bool true, int $post_id )

Filter to choose whether an email should be sent after each successful contact form submission.

Source file: modules/contact-form/grunion-contact-form.php

View in GitHub



(bool) true Should an email be sent after a form submission. Default to true.


(int) Post ID.


Since: Jetpack 2.6.0


You can use this filter to disable all emails that may be sent when a form is submitted on your site, like so:

add_filter( 'grunion_should_send_email', '__return_false' );

Have a question?

Comments are closed for this article, but we're still here to help! Visit the support forum and we'll be happy to answer any questions.

View support forum