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.
Line | Code |
---|---|
565 |
|
566 | // If the user was redirected to a secure login form from a non-secure admin page, and secure login is required but secure admin is not, then don't use a secure |
567 | // cookie and redirect back to the referring non-secure admin page. This allows logins to always be POSTed over SSL while allowing the user to choose visiting |
568 | // the admin via http or https. |
569 | if ( !$secure_cookie && is_ssl() && force_ssl_login() && !force_ssl_admin() && ( 0 !== strpos($redirect_to, 'https') ) && ( 0 === strpos($redirect_to, 'http') ) ) |
570 | $secure_cookie = false; |
571 |
|
572 | $user = wp_signon('', $secure_cookie); |
573 |
|
574 | $redirect_to = apply_filters('login_redirect', $redirect_to, isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '', $user); |
575 |
|
576 | if ( !is_wp_error($user) && !$reauth ) { |
577 | if ( $interim_login ) { |
578 | $message = '<p class="message">' . __('You have logged in successfully.') . '</p>'; |
579 | login_header( '', $message ); ?> |
580 | <script type="text/javascript">setTimeout( function(){window.close()}, 8000);</script> |
581 | <p class="alignright"> |
582 | <input type="button" class="button-primary" value="<?php esc_attr_e('Close'); ?>" onclick="window.close()" /></p> |
583 | </div></body></html> |