Where should I hook into the admin backend to check and see if the user is "active" as defined by the Membership Plugin.

Or in other words, where can I hook into the WP admin header to check an if-statement and redirect if it fails?

link|improve this question

75% accept rate
feedback

1 Answer

up vote 0 down vote accepted

Not sure about the Membership plug-in bit, but admin_init will be your best bet. I assume that you don't actually what to hook into the admin header though - this would be admin_head or admin_head-(plugin_page) - but you cannot redirect after these hooks (headers already sent).

link|improve this answer
admin_init is it! – Dave Feb 21 at 20:05
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.