Last active
February 13, 2019 15:03
-
-
Save Dorf/4e885be5c4f2ebc7d3a5b0b824f400b8 to your computer and use it in GitHub Desktop.
[Gravity Forms allow non-admins to view entries] also delete and export #gravity forms #wordpress #permissions #functions.php
This file contains hidden or 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
function add_grav_forms_permissions(){ | |
$role = get_role('editor'); | |
$role->add_cap('gravityforms_view_entries'); | |
$role->add_cap('gravityforms_delete_entries'); | |
$role->add_cap('gravityforms_view_entry_notes'); | |
$role->add_cap('gravityforms_export_entries'); | |
} | |
add_action('admin_init','add_grav_forms_permissions'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment