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
226      </script>
227      <?php endif; ?>
228
229      <?php
230      /**
231       * Fires in the login page footer.
232       *
233       * @since 3.1.0
234       */
235      do_action( 'login_footer' ); ?>
236      <div class="clear"></div>
237      </body>
238      </html>
239      <?php
240 }
241
242 function wp_shake_js() {
243      if ( wp_is_mobile() )
244           return;
 
Line Code
783
784      if ( !is_wp_error($user) && !$reauth ) {
785           if ( $interim_login ) {
786                $message = '<p class="message">' . __('You have logged in successfully.') . '</p>';
787                $interim_login = 'success';
788                login_header( '', $message ); ?>
789                </div>
790                <?php
791                /** This action is documented in wp-login.php */
792                do_action( 'login_footer' ); ?>
793                <?php if ( $customize_login ) : ?>
794                     <script type="text/javascript">setTimeout( function(){ new wp.customize.Messenger({ url: '<?php echo wp_customize_url(); ?>', channel: 'login' }).send('login') }, 1000 );</script>
795                <?php endif; ?>
796                </body></html>
797 <?php          exit;
798           }
799
800           if ( ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) ) {
801                // 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.