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
231      </script>
232      <?php endif; ?>
233
234      <?php
235      /**
236       * Fires in the login page footer.
237       *
238       * @since 3.1.0
239       */
240      do_action( 'login_footer' ); ?>
241      <div class="clear"></div>
242      </body>
243      </html>
244      <?php
245 }
246
247 /**
248  * @since 3.0.0
249  */
 
Line Code
808
809      if ( !is_wp_error($user) && !$reauth ) {
810           if ( $interim_login ) {
811                $message = '<p class="message">' . __('You have logged in successfully.') . '</p>';
812                $interim_login = 'success';
813                login_header( '', $message ); ?>
814                </div>
815                <?php
816                /** This action is documented in wp-login.php */
817                do_action( 'login_footer' ); ?>
818                <?php if ( $customize_login ) : ?>
819                     <script type="text/javascript">setTimeout( function(){ new wp.customize.Messenger({ url: '<?php echo wp_customize_url(); ?>', channel: 'login' }).send('login') }, 1000 );</script>
820                <?php endif; ?>
821                </body></html>
822 <?php          exit;
823           }
824
825           if ( ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) ) {
826                // 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.