[wp-hackers] Partial admin capabilities

Ryan Bilesky rbilesky at gmail.com
Wed Jul 28 20:26:02 UTC 2010


Perfect, I tested it and it is now working.

http://pastebin.com/0VnVgktV

On Wed, Jul 28, 2010 at 1:20 PM, Michael D Adams <mda at blogwaffe.com> wrote:

> On Wed, Jul 28, 2010 at 1:13 PM, Ryan Bilesky <rbilesky at gmail.com> wrote:
> > Ok, so where is the userid it is testing passed in?
>
> Did you try either of the functions I pasted?
>
> user_has_cap: http://pastebin.com/5HmAt92Q
> The user_id is passed as key=1 in the 3rd argument to the filter.
>
> map_meta_cap: http://pastebin.com/EYBeLKBD
> The user_id is passed as the 3rd argument to the filter.
>
> You only need to use one of those plugins.  I gave you both so you
> could see how each filter works and decide for yourself which method
> makes more sense to you.
>  _______________________________________________
> 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