Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: login_footer

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

This hook occurs 2 times in this file.

Line Code
432           <?php
433           wp_print_inline_script_tag( wp_remove_surrounding_empty_script_tags( ob_get_clean() ) );
434      }
435
436      /**
437       * Fires in the login page footer.
438       *
439       * @since 3.1.0
440       */
441      do_action( 'login_footer' );
442
443      ?>
444      </body>
445      </html>
446      <?php
447 }
448
449 /**
450  * Outputs the JavaScript to handle the form shaking on the login page.
 
Line Code
1356                     $message       = '<p class="message">' . __( 'You have logged in successfully.' ) . '</p>';
1357                     $interim_login = 'success';
1358                     login_header( '', $message );
1359
1360                     ?>
1361                     </div>
1362                     <?php
1363
1364                     /** This action is documented in wp-login.php */
1365                     do_action( 'login_footer' );
1366
1367                     if ( $customize_login ) {
1368                          ob_start();
1369                          ?>
1370                          <script>setTimeout( function(){ new wp.customize.Messenger({ url: '<?php echo wp_customize_url(); ?>', channel: 'login' }).send('login') }, 1000 );</script>
1371                          <?php
1372                          wp_print_inline_script_tag( wp_remove_surrounding_empty_script_tags( ob_get_clean() ) );
1373                     }
1374