Skip to content

Instantly share code, notes, and snippets.

@stevecordle
Last active October 14, 2021 18:17
Show Gist options
  • Save stevecordle/e8a27229c92bf4281156 to your computer and use it in GitHub Desktop.
Save stevecordle/e8a27229c92bf4281156 to your computer and use it in GitHub Desktop.
Disable ajax on all gravity forms
/*
Gravity Forms => 1.9
*/
add_filter('gform_form_args', 'no_ajax_on_all_forms', 10, 1);
function no_ajax_on_all_forms($args){
$args['ajax'] = false;
return $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment