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.
| Line | Code |
|---|---|
| 476 | } else { |
| 477 | $redirect_to = admin_url(); |
| 478 | } |
| 479 | |
| 480 | if ( !$secure_cookie && is_ssl() && force_ssl_login() && !force_ssl_admin() && ( 0 !== strpos($redirect_to, 'https') ) && ( 0 === strpos($redirect_to, 'http') ) ) |
| 481 | $secure_cookie = false; |
| 482 | |
| 483 | $user = wp_signon('', $secure_cookie); |
| 484 | |
| 485 | $redirect_to = apply_filters('login_redirect', $redirect_to, isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '', $user); |
| 486 | |
| 487 | if ( !is_wp_error($user) ) { |
| 488 | if ( $interim_login ) { |
| 489 | $message = '<p class="message">' . __('You have logged in successfully.') . '</p>'; |
| 490 | login_header( '', $message ); ?> |
| 491 | <script type="text/javascript">setTimeout( function(){window.close()}, 8000);</script> |
| 492 | <p class="alignright"> |
| 493 | <input type="button" class="button-primary" value="<?php esc_attr_e('Close'); ?>" onclick="window.close()" /></p> |
| 494 | </div></body></html> |