[wp-hackers] Partial admin capabilities

Otto otto at ottodestruct.com
Tue Jul 27 22:12:05 UTC 2010

You'll want to look at the "user_has_cap" filter. This is called
whenever the capability check is done for a user.


On Tue, Jul 27, 2010 at 5:02 PM, Ryan Bilesky <rbilesky at gmail.com> wrote:
> I want to write a plugin where everytime something that requires the
> capability install_plugins (for example) is required it also adds the
> condition that the current user's userid is 1.  The purpose of this would be
> to restrict certain actions to just me, even though I have other
> "administrators" on the blog, I want them to have some of the admin
> capabilities but not all,
> _______________________________________________
> 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