[wp-hackers] How to prevent "You do not have sufficient permissions to access this page."
Mike Walsh
mpwalsh8 at gmail.com
Mon May 28 14:29:22 UTC 2012
On Mon, May 28, 2012 at 1:21 PM, Dion Hulse (dd32) <wordpress at dd32.id.au>wrote:
> I'd suggest one of 2 things:
> 1. Use admin-post.php for callbacks, and redirect back to the plugin
> page afterwards
> or
> 2. Register the pages you need, and use the load-<pagehook> action to
> process form events from that page. The load hook is run before any
> admin template code is run.
>
> I'm not sure if I'm missing something here though :)
>
>
Just to clarify, if I use admin-post.php, I need to add a nonce to the URL,
correct?
Mike
--
Mike Walsh - mpwalsh8 at gmail.com
More information about the wp-hackers
mailing list