Skip to content

Instantly share code, notes, and snippets.

@thinkstylestudio
Created August 6, 2013 22:18
Show Gist options
  • Save thinkstylestudio/6169242 to your computer and use it in GitHub Desktop.
Save thinkstylestudio/6169242 to your computer and use it in GitHub Desktop.
# Gravity Forms
add_action('admin_init','add_grav_forms');
function add_grav_forms(){
$role = get_role('editor');
$role->add_cap('gform_full_access');
}
add_filter("gform_validation_message", "change_message", 10, 2);
function change_message($message, $form) {
return '<div class=\"validation_error\">Ocorreu um erro na sua submissão. <br/>Os erros foram assinalados em baixo.</div>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment