login_footer
Fires after the form is output on the login/authorization page (wp-login.php).
See the similar login_header hook, which fires before the form is output.
Usage
add_action( 'login_footer', 'wp_kama_login_footer_action' );
/**
* Function for `login_footer` action-hook.
*
* @return void
*/
function wp_kama_login_footer_action(){
// action...
}
Examples
#1 Output a custom block after the registration/login form
add_action( 'login_footer', 'add_custom_block_to_login_footer' );
function add_custom_block_to_login_footer() {
?>
<div class="custom-block">
<p>We have been waiting for you!</p>
</div>
<style>
.custom-block {
width: 320px;
margin: 0 auto;
padding: 15px;
color: #ffffff;
text-align: center;
font-size: 20px;
background: #488902;
}
</style>
<?php
}Changelog
| Since 3.1.0 | Introduced. |
Where the hook is called
wp-login.php 442
do_action( 'login_footer' );
wp-login.php 1366
do_action( 'login_footer' );
Where the hook is used in WordPress
wp-includes/default-filters.php 397
add_action( 'login_footer', 'wp_print_footer_scripts', 20 );
wp-login.php 70
add_action( 'login_footer', 'wp_shake_js', 12 );