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 |
|---|---|
| 265 | </script> |
| 266 | <?php endif; ?> |
| 267 | |
| 268 | <?php |
| 269 | /** |
| 270 | * Fires in the login page footer. |
| 271 | * |
| 272 | * @since 3.1.0 |
| 273 | */ |
| 274 | do_action( 'login_footer' ); ?> |
| 275 | <div class="clear"></div> |
| 276 | </body> |
| 277 | </html> |
| 278 | <?php |
| 279 | } |
| 280 | |
| 281 | /** |
| 282 | * @since 3.0.0 |
| 283 | */ |
| Line | Code |
| 918 | |
| 919 | if ( !is_wp_error($user) && !$reauth ) { |
| 920 | if ( $interim_login ) { |
| 921 | $message = '<p class="message">' . __('You have logged in successfully.') . '</p>'; |
| 922 | $interim_login = 'success'; |
| 923 | login_header( '', $message ); ?> |
| 924 | </div> |
| 925 | <?php |
| 926 | /** This action is documented in wp-login.php */ |
| 927 | do_action( 'login_footer' ); ?> |
| 928 | <?php if ( $customize_login ) : ?> |
| 929 | <script type="text/javascript">setTimeout( function(){ new wp.customize.Messenger({ url: '<?php echo wp_customize_url(); ?>', channel: 'login' }).send('login') }, 1000 );</script> |
| 930 | <?php endif; ?> |
| 931 | </body></html> |
| 932 | <?php exit; |
| 933 | } |
| 934 | |
| 935 | if ( ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) ) { |
| 936 | // 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. |