Wordpress add custom user role


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. /* Add custom user role - http://codex.wordpress.org/Roles_and_Capabilities */
  2. add_role('site_developer', 'Site Developer', array(
  3. 'read' => true,
  4. 'edit_posts' => true,
  5. 'delete_posts' => false
  6. ));

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.