Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.92 KB | None | 0 0
  1. $result = add_role( 'New_user', __(
  2.  
  3.     'Новый пользователь' ),
  4.  
  5.     array(
  6.  
  7.         'read' => true, // true allows this capability
  8.         'edit_posts' => true, // Allows user to edit their own posts
  9.         'edit_pages' => true, // Allows user to edit pages
  10.         'edit_others_posts' => true, // Allows user to edit others posts not just their own
  11.         'create_posts' => true, // Allows user to create new posts
  12.         'manage_categories' => true, // Allows user to manage post categories
  13.         'publish_posts' => true, // Allows the user to publish, otherwise posts stays in draft mode
  14.         'edit_themes' => false, // false denies this capability. User can’t edit your theme
  15.         'install_plugins' => false, // User cant add new plugins
  16.         'update_plugin' => false, // User can’t update any plugins
  17.         'update_core' => false // user cant perform core updates
  18.  
  19.     )
  20.  
  21. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement