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
228      </script>
229      <?php endif; ?>
230
231      <?php
232      /**
233       * Fires in the login page footer.
234       *
235       * @since 3.1.0
236       */
237      do_action( 'login_footer' ); ?>
238      <div class="clear"></div>
239      </body>
240      </html>
241      <?php
242 }
243
244 /**
245  * @since 3.0.0
246  */
 
Line Code
830
831      if ( !is_wp_error($user) && !$reauth ) {
832           if ( $interim_login ) {
833                $message = '<p class="message">' . __('You have logged in successfully.') . '</p>';
834                $interim_login = 'success';
835                login_header( '', $message ); ?>
836                </div>
837                <?php
838                /** This action is documented in wp-login.php */
839                do_action( 'login_footer' ); ?>
840                <?php if ( $customize_login ) : ?>
841                     <script type="text/javascript">setTimeout( function(){ new wp.customize.Messenger({ url: '<?php echo wp_customize_url(); ?>', channel: 'login' }).send('login') }, 1000 );</script>
842                <?php endif; ?>
843                </body></html>
844 <?php          exit;
845           }
846
847           if ( ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) ) {
848                // If the user doesn't belong to a blog, send them to user admin. If the user can't edit posts, send them to their profile.