WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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 an $interim_login variable within the wp-login.php file, and I'm not sure what it does or what it is. The documentation around the interwebs is pretty sparse.

What is $interim_login?

share|improve this question
up vote 5 down vote accepted

The variable $interim_login is TRUE when the log-in session of a user expires while she is working in the back end, for example during an auto-save action. In this case a message asking to log in again appears at the bottom of the editor:

enter image description here

The same can happen in the theme customizer.

The $_REQUEST variable that switches the log-in form to interim is interim-login. Note how the underscore is replaced with a dash for no obvious reason.

share|improve this answer

Basically $interim_login tells WordPress that the users session has expired, prompts the user to log back in and takes them back to the page they were on when the session expired.

So for example if the user is sitting in the dashboard all day and then gets back on and tries to edit something but their session expired and they are no longer logged in WordPress will call 'interim-login' and allow the user to log back in and continue editing where they left off.

You can study how interim-login works by checking out.

wp-admin\customize.php line: 158

wp-admin\includes\ajax-actions.php line: 1048

and of course in


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.