Guest User

Untitled

a guest
May 26th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. // allow editors to manage gravity forms
  2. // allow editors to use Appearance menu
  3. // allow editors to manage co-authors plus plugin, create guest authors
  4. // allow editors to manage Privacy sub-menu under Settings
  5.  
  6. function dmc_modify_editor_role() {
  7. $role = get_role( 'editor' );
  8.  
  9. $capabilities = array(
  10. 'gform_full_access',
  11. 'edit_theme_options',
  12. 'coauthors_guest_author_manage_cap',
  13. 'manage_privacy_options',
  14. );
  15.  
  16. foreach ( $capabilities as $cap ) {
  17. $role->add_cap( $cap );
  18. }
  19. }
  20. add_action( 'admin_init', 'dmc_modify_editor_role' );
Add Comment
Please, Sign In to add comment