[wp-hackers] Missing Menus
Robin Adrianse
robin.adr at gmail.com
Mon May 21 14:28:54 GMT 2007
Isn't it current_user_can()?
On 5/21/07, Aaron Brazell <abrazell at b5media.com> wrote:
>
> I think you're looking for a slight verbage change:
>
> if( user_can('manage_options') )
> --
> Aaron Brazell
> Director of Technology, b5media
> "A Global New Media Company"
>
> www:: www.b5media.com
> my www: www.technosailor.com
> phone:: 410-608-6620
> fax:: 416-849-0347
> skype:: technosailor
>
> Everything contained in this email is confidential and stuff.
>
>
>
>
> On May 19, 2007, at 6:53 PM, Andy Staines wrote:
>
> > Well, all the same, it actually works for everyone except one user
> > from
> > WP2.0 right up to 2.2. It also tallies with the examples in the codex
> > (http://codex.wordpress.org/Adding_Administration_Menus) and after
> > checking
> > other plugins I am using here they also use this format. Mark J's
> > 'Subscribe
> > to comments' for example - OK it uses the 'add_management_page'
> > wrapper but
> > still uses a level 8. So should the role be substituted now? As in the
> > string - 'Administrator'?
>
> _______________________________________________
> 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