Skip to content

Instantly share code, notes, and snippets.

@nathaningram
Last active April 14, 2024 14:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathaningram/0eda15f14c29d54fee5dc2bb23d6df15 to your computer and use it in GitHub Desktop.
Save nathaningram/0eda15f14c29d54fee5dc2bb23d6df15 to your computer and use it in GitHub Desktop.
Creating a Starter Site 2022 - Custom Functions - Gravity Forms
<?php
/*
Plugin Name: Custom Gravity Forms Fuctions
Plugin URI: https://nathaningram.com
Description: Customize Gravity Forms Default Behavior
Version: 2023.11
Author: Nathan Ingram
Author URI: https://nathaningram.com
License: GPL2
*/
// Give Editors Full Gravity Forms Access
function ni_add_grav_forms(){
$role = get_role('editor');
$role->add_cap('gform_full_access');
}
add_action('admin_init','ni_add_grav_forms');
//Start GF Multi Page Progress Bar at 0%
add_filter( 'gform_progressbar_start_at_zero', '__return_true' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment