login_footer( string $input_id = '' )
Outputs the footer for the login page.
Description Description
Parameters Parameters
- $input_id
-
(string) (Optional) Which input to auto-focus.
Default value: ''
Source Source
File: wp-login.php
256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 | function login_footer( $input_id = '' ) { global $interim_login ; // Don't allow interim logins to navigate away from the page. if ( ! $interim_login ) : ?> <p id= "backtoblog" ><a href= "<?php echo esc_url( home_url( '/' ) ); ?>" > <?php /* translators: %s: site title */ printf( _x( '← Back to %s' , 'site' ), get_bloginfo( 'title' , 'display' ) ); ?> </a></p> <?php the_privacy_policy_link( '<div class="privacy-policy-page-link">' , '</div>' ); ?> <?php endif ; ?> </div> <?php if ( ! empty ( $input_id ) ) : ?> <script type= "text/javascript" > try {document.getElementById( '<?php echo $input_id; ?>' ).focus();} catch (e){} if (typeof wpOnload== 'function' )wpOnload(); </script> <?php endif ; ?> <?php /** * Fires in the login page footer. * * @since 3.1.0 */ do_action( 'login_footer' ); ?> <div class = "clear" ></div> </body> </html> <?php } |
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |