[wp-hackers] "role_has_cap" Filter

Viper007Bond viper at viper007bond.com
Wed Apr 9 02:07:01 GMT 2008


Yeah, I traced the logic and came up with "role_had_cap". I must have missed
"user_has_cap" though.

Thanks guys. :)

On Tue, Apr 8, 2008 at 7:54 AM, Jeremy Clarke <
jer-wphackers at simianuprising.com> wrote:

> I managed to hook into the capabilities with the 'user_has_cap' filter
> (which afaik fires whenever 'current_user_can()' is invoked). I had to
> trace the logic through a lot of hoops first though, so you might want
> to look at the source for the place where it does the dashboard check
> and follow from there. Here's a paste of the outline of my function:
>
> http://pastie.caboo.se/177222
>
>
> Jeremy Clarke | http://simianuprising.com
> Code and Design | http://globalvoicesonline.org
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
Viper007Bond | http://www.viper007bond.com/ | http://www.finalgear.com/


More information about the wp-hackers mailing list