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 |
---|---|
561 |
|
562 | // 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 |
563 | // 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 |
564 | // the admin via http or https. |
565 | if ( !$secure_cookie && is_ssl() && force_ssl_login() && !force_ssl_admin() && ( 0 !== strpos($redirect_to, 'https') ) && ( 0 === strpos($redirect_to, 'http') ) ) |
566 | $secure_cookie = false; |
567 |
|
568 | $user = wp_signon('', $secure_cookie); |
569 |
|
570 | $redirect_to = apply_filters('login_redirect', $redirect_to, isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '', $user); |
571 |
|
572 | if ( !is_wp_error($user) && !$reauth ) { |
573 | if ( $interim_login ) { |
574 | $message = '<p class="message">' . __('You have logged in successfully.') . '</p>'; |
575 | login_header( '', $message ); ?> |
576 | <script type="text/javascript">setTimeout( function(){window.close()}, 8000);</script> |
577 | <p class="alignright"> |
578 | <input type="button" class="button-primary" value="<?php esc_attr_e('Close'); ?>" onclick="window.close()" /></p> |
579 | </div></body></html> |