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

I found the action I'd like to remove in the plugin php file:

add_action('init', array($user_hooks, "doAutoLogout"));

yet, when I add this:

remove_action('init', array($user_hooks, "doAutoLogout"));

to my functions.php, the action remains.

I'm 99% sure I'm targeting the right action, so I think it may be something else. Anything obvious?

share|improve this question

This is the correct way to do this, turns out. I'm not sure why it didn't at first. May be the caching plugin.

share|improve this answer

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.