Advertisement
askwpcoach

Register Roles

Jan 29th, 2014
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.37 KB | None | 0 0
  1. <?php
  2. //Add Club Roles
  3. add_role('investor_club_executive', 'Investor Club Executive', array(
  4.     'read' => true, // True allows that capability
  5.     'edit_posts' => true,
  6.     'delete_posts' => false, // Use false to explicitly deny
  7. ));
  8. add_role('investor_club_member', 'Investor Club Member', array(
  9.     'read' => true, // True allows that capability
  10.     'edit_posts' => true,
  11.     'delete_posts' => false, // Use false to explicitly deny
  12. ));
  13. add_role('club_1', 'Club 1', array(
  14.     'read' => true, // True allows that capability
  15.     'edit_posts' => true,
  16.     'delete_posts' => false, // Use false to explicitly deny
  17. ));
  18. add_role('club_2', 'Club 2', array(
  19.     'read' => true, // True allows that capability
  20.     'edit_posts' => true,
  21.     'delete_posts' => false, // Use false to explicitly deny
  22. ));
  23. add_role('club_ford', 'Club Ford', array(
  24.     'read' => true, // True allows that capability
  25.     'edit_posts' => true,
  26.     'delete_posts' => false, // Use false to explicitly deny
  27. ));
  28. add_role('club_sharks', 'Club Sharks', array(
  29.     'read' => true, // True allows that capability
  30.     'edit_posts' => true,
  31.     'delete_posts' => false, // Use false to explicitly deny
  32. ));
  33. add_role('club_girl_power', 'Club Girl Power', array(
  34.     'read' => true, // True allows that capability
  35.     'edit_posts' => true,
  36.     'delete_posts' => false, // Use false to explicitly deny
  37. ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement