How to allow editors to read and export Gravity Forms messages

How can I allow editors to read entries on gravity forms?

Add this code to your functions file:

<?php
/* Allow reading & export entries in Gravity Form */
function wpster_gravity_forms() {
$role = get_role('editor');
$role->add_cap( 'gravityforms_view_entries' );
$role->add_cap( 'gravityforms_export_entries' );
}
add_action('admin_init','wpster_gravity_forms');

All Gravity Forms roles are listed here.

Submit a Comment

Your email address will not be published. Required fields are marked *