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
240      </script>
241      <?php endif; ?>
242
243      <?php
244      /**
245       * Fires in the login page footer.
246       *
247       * @since 3.1.0
248       */
249      do_action( 'login_footer' ); ?>
250      <div class="clear"></div>
251      </body>
252      </html>
253      <?php
254 }
255
256 /**
257  * @since 3.0.0
258  */
 
Line Code
813
814      if ( !is_wp_error($user) && !$reauth ) {
815           if ( $interim_login ) {
816                $message = '<p class="message">' . __('You have logged in successfully.') . '</p>';
817                $interim_login = 'success';
818                login_header( '', $message ); ?>
819                </div>
820                <?php
821                /** This action is documented in wp-login.php */
822                do_action( 'login_footer' ); ?>
823                <?php if ( $customize_login ) : ?>
824                     <script type="text/javascript">setTimeout( function(){ new wp.customize.Messenger({ url: '<?php echo wp_customize_url(); ?>', channel: 'login' }).send('login') }, 1000 );</script>
825                <?php endif; ?>
826                </body></html>
827 <?php          exit;
828           }
829
830           if ( ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) ) {
831                // 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.