WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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).

share|improve this answer
admin_init is it! – Dave Feb 21 '12 at 20:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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