Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.