Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // allow editors to manage gravity forms
- // allow editors to use Appearance menu
- // allow editors to manage co-authors plus plugin, create guest authors
- // allow editors to manage Privacy sub-menu under Settings
- function dmc_modify_editor_role() {
- $role = get_role( 'editor' );
- $capabilities = array(
- 'gform_full_access',
- 'edit_theme_options',
- 'coauthors_guest_author_manage_cap',
- 'manage_privacy_options',
- );
- foreach ( $capabilities as $cap ) {
- $role->add_cap( $cap );
- }
- }
- add_action( 'admin_init', 'dmc_modify_editor_role' );
Add Comment
Please, Sign In to add comment