Source View: login_form

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

  • Action hooks look like this: do_action( "hook_name" )
  • Filter hooks look like this: 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.

Source View

Line Code
347 <form name="loginform" id="loginform" action="wp-login.php" method="post">
348      <p>
349           <label><?php _e('Username:') ?><br />
350           <input type="text" name="log" id="user_login" class="input" value="<?php echo attribute_escape(stripslashes($user_login)); ?>" size="20" tabindex="10" /></label>
351      </p>
352      <p>
353           <label><?php _e('Password:') ?><br />
354           <input type="password" name="pwd" id="user_pass" class="input" value="" size="20" tabindex="20" /></label>
355      </p>
356 <?php do_action('login_form'); ?>
357      <p><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90" /> <?php _e('Remember me'); ?></label></p>
358      <p class="submit">
359           <input type="submit" name="wp-submit" id="wp-submit" value="<?php _e('Login'); ?> &raquo;" tabindex="100" />
360           <input type="hidden" name="redirect_to" value="<?php echo attribute_escape($redirect_to); ?>" />
361      </p>
362 </form>
363 </div>
364
365 <ul>