Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Commonwell
/
broker-site
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
81850ff0
authored
2023-01-16 15:02:42 -0500
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
hhh
Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent
bb61ecdb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
wp-content/themes/commonwell-broker/functions.php
wp-content/themes/commonwell-broker/functions.php
View file @
81850ff
...
...
@@ -311,6 +311,17 @@ function handle_preflight()
}
}
/**
* Remove roles
*
* Author, Editor, Contributor
*
*/
$wp_roles
=
new
WP_Roles
();
$wp_roles
->
remove_role
(
"author"
);
$wp_roles
->
remove_role
(
"editor"
);
$wp_roles
->
remove_role
(
"contributor"
);
add_role
(
'cwl_staff'
,
__
(
'CWL Staff'
),
array
(
...
...
@@ -321,7 +332,6 @@ add_role(
);
/*
* Creating a function to create our CPT
*/
...
...
Please
register
or
sign in
to post a comment