ClassicPress logo
Skip to content
Filter by type:

Browse:

  • Home
  • Functions
  • login_footer()

login_footer( string $input_id = '' )

Outputs the footer for the login page.


Parameters

$input_id

(Optional) Which input to auto-focus.

Default value: ''


Source

File: wp-login.php

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( '&larr; 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 WP-3.1.0
	 */
	do_action( 'login_footer' ); ?>
	<div class="clear"></div>
	</body>
	</html>
	<?php
}

Expand Source Code View on GitHub


Related

Uses

Uses
Uses Description
wp-login.php: login_site_html_link

Filter the “Go to site” link displayed in the login page footer.

wp-login.php: login_display_language_dropdown

Filters the Languages select input activation on the login screen.

wp-login.php: login_language_dropdown_args

Filters default arguments for the Languages select input on the login screen.

wp-login.php: login_footer

Fires in the login page footer.

wp-includes/general-template.php: get_bloginfo()

Retrieves information about the current site.

wp-includes/link-template.php: the_privacy_policy_link()

Displays the privacy policy link with formatting, when applicable.

wp-includes/link-template.php: home_url()

Retrieves the URL for the current site where the front end is accessible.

wp-includes/plugin.php: do_action()

Calls the callback functions that have been added to an action hook.

wp-includes/plugin.php: apply_filters()

Calls the callback functions that have been added to a filter hook.

Show 4 more uses Hide more uses

Changelog

Changelog
Version Description
3.1.0 Introduced.
ClassicPress Documentation • Made with ClassicPress
Privacy Policy