[wp-hackers] Error: Are you sureyou want to do this?

Leo Baiano ljunior2005 at gmail.com
Thu Apr 28 20:57:39 UTC 2011

How do I register for a just Metabox certain level of user? I'm using a
custom class to generate the goal box Metabox and do not know which
parameter set the user levelwould have access to this box.

2011/4/28 Jeremy Clarke <jer at simianuprising.com>

> It sounds like you have a check against current_user_can() in the code that
> uses the input from your metabox as well as in the metabox itself. Did you
> check that part as well?
> You may also want to try logging in with a different browser, it might be a
> bug with the cookies or something.
> As to your general situation, you should try to only register the metabox
> when the user deserves to see it, rather than registering it for all then
> unregistering for certain people. Ideally both sides of the management
> (frontend metabox and backend handler) should be set to run only when the
> user has the right capabilities, since otherwise unprivileged users could
> accidentally delete information when your form handler recieves none of the
> fields it expected from the metabox.
> --
> Jeremy Clarke • jeremyclarke.org
> Code and Design • globalvoicesonline.org
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers


Leo Baiano

More information about the wp-hackers mailing list