[wp-hackers] How to make a role inherit anther role's capabilities?
peter baylies
pbaylies at semperfiwebdesign.com
Tue Mar 13 17:54:59 UTC 2012
Lox,
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 );
Cheers,
-- Peter Baylies
Semper Fi Web Design
On Tue, Mar 6, 2012 at 9:47 PM, Lox <lox.dev at knc.nc> wrote:
> Hello,
>
> When creating a role I would like it to inherit the capabilities of an
> other role .
> Is that possible?
>
> Regards
>
> --
> Lox
> lox.dev at knc.nc
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list