Forked from spivurno/gw-gravity-forms-prevent-form-update.php
Created
September 5, 2016 04:21
-
-
Save phillipwilhelm/143d32a8b85c9f9bcafaf4e590fd007d to your computer and use it in GitHub Desktop.
Gravity Wiz // Gravity Forms // Prevent Form from Being Updated
This file contains hidden or 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 | |
/** | |
* Gravity Wiz // Gravity Forms // Prevent Form from Being Updated | |
* http://gravitywiz.com | |
*/ | |
add_action( 'check_admin_referer', function( $action, $result ) { | |
// update the "723" to your form ID | |
if( $action == 'gforms_update_form_723' ) { | |
die( 'Back up off my form, BRO!' ); | |
} | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment