WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
This hook occurs 2 times in this file.
| Line | Code |
|---|---|
| 162 | </div> |
| 163 | |
| 164 | <?php if ( !empty($input_id) ) : ?> |
| 165 | <script type="text/javascript"> |
| 166 | try{document.getElementById('<?php echo $input_id; ?>').focus();}catch(e){} |
| 167 | if(typeof wpOnload=='function')wpOnload(); |
| 168 | </script> |
| 169 | <?php endif; ?> |
| 170 | |
| 171 | <?php do_action('login_footer'); ?> |
| 172 | <div class="clear"></div> |
| 173 | </body> |
| 174 | </html> |
| 175 | <?php |
| 176 | } |
| 177 | |
| 178 | function wp_shake_js() { |
| 179 | if ( wp_is_mobile() ) |
| 180 | return; |
| Line | Code |
| 623 | |
| 624 | $redirect_to = apply_filters('login_redirect', $redirect_to, isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '', $user); |
| 625 | |
| 626 | if ( !is_wp_error($user) && !$reauth ) { |
| 627 | if ( $interim_login ) { |
| 628 | $message = '<p class="message">' . __('You have logged in successfully.') . '</p>'; |
| 629 | $interim_login = 'success'; |
| 630 | login_header( '', $message ); ?> |
| 631 | </div> |
| 632 | <?php do_action( 'login_footer' ); ?> |
| 633 | <?php if ( $customize_login ) : ?> |
| 634 | <script type="text/javascript">setTimeout( function(){ new wp.customize.Messenger({ url: '<?php echo wp_customize_url(); ?>', channel: 'login' }).send('login') }, 1000 );</script> |
| 635 | <?php endif; ?> |
| 636 | </body></html> |
| 637 | <?php exit; |
| 638 | } |
| 639 | |
| 640 | if ( ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) ) { |
| 641 | // 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. |