login_footer

Outputs the footer for the login page.

Description

login_footer( (string) $input_id = '' ); 

Parameters (1)

0. $input_id — Optional. (string) => ''
Which input to auto-focus

Usage

  1. if ( !function_exists( 'login_footer' ) ) { 
  2. require_once '/wp-login.php'; 
  3.  
  4. // Which input to auto-focus 
  5. $input_id = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = login_footer($input_id); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-login.php  
  1. function login_footer($input_id = '') { 
  2. global $interim_login; 
  3.  
  4. // Don't allow interim logins to navigate away from the page. 
  5. if ( ! $interim_login ): ?> 
  6. <p id="backtoblog"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php 
  7. /** translators: %s: site title */ 
  8. printf( _x( '← Back to %s', 'site' ), get_bloginfo( 'title', 'display' ) ); 
  9. ?></a></p> 
  10. <?php endif; ?> 
  11.  
  12. </div> 
  13.  
  14. <?php if ( !empty($input_id) ) : ?> 
  15. <script type="text/javascript"> 
  16. try{document.getElementById('<?php echo $input_id; ?>').focus();}catch(e) {} 
  17. if(typeof wpOnload=='function')wpOnload(); 
  18. </script> 
  19. <?php endif; ?> 
  20.  
  21. <?php 
  22. /** 
  23. * Fires in the login page footer. 
  24. * @since 3.1.0 
  25. */ 
  26. <div class="clear"></div> 
  27. </body> 
  28. </html> 
  29. <?php