Created
May 17, 2016 18:17
-
-
Save taija/eb4e95b391e7a35a9de345be3276fb37 to your computer and use it in GitHub Desktop.
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
/* Test functiom to disable all Gravity Forms */ | |
add_filter( 'gform_pre_render', 'disable_all_forms' ); | |
function disable_all_forms( $form ) { | |
//$form = htmlentities($form); | |
echo '<pre>'; | |
print_r($form); | |
echo '</pre>'; | |
$form['title'] = 'This form is temporarily disabled'; | |
$form['description'] = 'This form is temporarily disabled. Please check back soon.'; | |
$form['fields'] = array(); | |
//$form['button'] = array(); | |
return $form; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment