[wp-hackers] How to make a role inherit anther role's capabilities?
pbaylies at semperfiwebdesign.com
Tue Mar 13 17:54:59 UTC 2012
If you just want to duplicate the current permissions of a role, you could
do something like this:
$role = get_role( 'editor' );
add_role( 'AnotherRole', 'AnotherRole', $role->capabilities );
-- Peter Baylies
Semper Fi Web Design
On Tue, Mar 6, 2012 at 9:47 PM, Lox <lox.dev at knc.nc> wrote:
> When creating a role I would like it to inherit the capabilities of an
> other role .
> Is that possible?
> lox.dev at knc.nc
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers