Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save phillipwilhelm/143d32a8b85c9f9bcafaf4e590fd007d to your computer and use it in GitHub Desktop.
Save phillipwilhelm/143d32a8b85c9f9bcafaf4e590fd007d to your computer and use it in GitHub Desktop.
Gravity Wiz // Gravity Forms // Prevent Form from Being Updated
<?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