Last active
April 14, 2024 14:10
-
-
Save nathaningram/0eda15f14c29d54fee5dc2bb23d6df15 to your computer and use it in GitHub Desktop.
Creating a Starter Site 2022 - Custom Functions - Gravity Forms
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
<?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