Created
October 12, 2022 15:06
-
-
Save Garconis/93a0bc9805f5f877389edf40865807f5 to your computer and use it in GitHub Desktop.
Gravity Forms | Give the Editor role full access to Gravity Forms in the backend
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 | |
// Give the Editor role full access to Gravity Forms | |
function fs_add_grav_forms(){ | |
$role = get_role('editor'); | |
$role->add_cap('gform_full_access'); | |
} | |
add_action('admin_init','fs_add_grav_forms'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment