Created
March 19, 2015 16:14
-
-
Save lelandf/07854991da579d2a0b89 to your computer and use it in GitHub Desktop.
This snippet will disable all Gravity Forms notifications. It is designed to be dropped into a mu-plugins file or theme's functions file. You probably don't need this but it might come in handy for something.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'gform_notification', 'leland_disable_gf_notifications', 10, 3 ); | |
function leland_disable_gf_notifications( $notification, $form, $entry ) { | |
$notification = ''; | |
return $notification; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment