Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action('init', 'cloneRole');
- function cloneRole()
- {
- global $wp_roles;
- if ( ! isset( $wp_roles ) ){
- $wp_roles = new WP_Roles();
- }
- $wp_roles->add_role('brewery', 'Brewery', array(
- 'read' => false,
- 'edit_posts' => false,
- 'delete_posts' => false,
- ));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement