hhh
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
1 changed file
with
11 additions
and
1 deletions
| ... | @@ -311,6 +311,17 @@ function handle_preflight() | ... | @@ -311,6 +311,17 @@ function handle_preflight() |
| 311 | } | 311 | } |
| 312 | } | 312 | } |
| 313 | 313 | ||
| 314 | |||
| 315 | /** | ||
| 316 | * Remove roles | ||
| 317 | * | ||
| 318 | * Author, Editor, Contributor | ||
| 319 | * | ||
| 320 | */ | ||
| 321 | $wp_roles = new WP_Roles(); | ||
| 322 | $wp_roles->remove_role("author"); | ||
| 323 | $wp_roles->remove_role("editor"); | ||
| 324 | $wp_roles->remove_role("contributor"); | ||
| 314 | add_role( | 325 | add_role( |
| 315 | 'cwl_staff', __('CWL Staff'), | 326 | 'cwl_staff', __('CWL Staff'), |
| 316 | array( | 327 | array( |
| ... | @@ -321,7 +332,6 @@ add_role( | ... | @@ -321,7 +332,6 @@ add_role( |
| 321 | ); | 332 | ); |
| 322 | 333 | ||
| 323 | 334 | ||
| 324 | |||
| 325 | /* | 335 | /* |
| 326 | * Creating a function to create our CPT | 336 | * Creating a function to create our CPT |
| 327 | */ | 337 | */ | ... | ... |
-
Please register or sign in to post a comment