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 |
---|---|
146 | </div> |
147 |
|
148 | <?php if ( !empty($input_id) ) : ?> |
149 | <script type="text/javascript"> |
150 | try{document.getElementById('<?php echo $input_id; ?>').focus();}catch(e){} |
151 | if(typeof wpOnload=='function')wpOnload(); |
152 | </script> |
153 | <?php endif; ?> |
154 |
|
155 | <?php do_action('login_footer'); ?> |
156 | <div class="clear"></div> |
157 | </body> |
158 | </html> |
159 | <?php |
160 | } |
161 |
|
162 | function wp_shake_js() { |
163 | if ( wp_is_mobile() ) |
164 | return; |
Line | Code |
614 | $message = '<p class="message">' . __('You have logged in successfully.') . '</p>'; |
615 | login_header( '', $message ); ?> |
616 |
|
617 | <?php if ( ! $customize_login ) : ?> |
618 | <script type="text/javascript">setTimeout( function(){window.close()}, 8000);</script> |
619 | <p class="alignright"> |
620 | <input type="button" class="button-primary" value="<?php esc_attr_e('Close'); ?>" onclick="window.close()" /></p> |
621 | <?php endif; ?> |
622 | </div> |
623 | <?php do_action( 'login_footer' ); ?> |
624 | <?php if ( $customize_login ) : ?> |
625 | <script type="text/javascript">setTimeout( function(){ new wp.customize.Messenger({ url: '<?php echo wp_customize_url(); ?>', channel: 'login' }).send('login') }, 1000 );</script> |
626 | <?php endif; ?> |
627 | </body></html> |
628 | <?php exit; |
629 | } |
630 |
|
631 | if ( ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) ) { |
632 | // 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. |