Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: login_form_top

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.

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
265                               'id_submit' => 'wp-submit',
266                               'remember' => true,
267                               'value_username' => '',
268                               'value_remember' => false, // Set this to true to default the "Remember me" checkbox to checked
269                          );
270      $args = wp_parse_args( $args, apply_filters( 'login_form_defaults', $defaults ) );
271
272      $form = '
273           <form name="' . $args['form_id'] . '" id="' . $args['form_id'] . '" action="' . site_url( 'wp-login.php', 'login' ) . '" method="post">
274                ' . apply_filters( 'login_form_top', '', $args ) . '
275                <p class="login-username">
276                     <label for="' . esc_attr( $args['id_username'] ) . '">' . esc_html( $args['label_username'] ) . '</label>
277                     <input type="text" name="log" id="' . esc_attr( $args['id_username'] ) . '" class="input" value="' . esc_attr( $args['value_username'] ) . '" size="20" tabindex="10" />
278                </p>
279                <p class="login-password">
280                     <label for="' . esc_attr( $args['id_password'] ) . '">' . esc_html( $args['label_password'] ) . '</label>
281                     <input type="password" name="pwd" id="' . esc_attr( $args['id_password'] ) . '" class="input" value="" size="20" tabindex="20" />
282                </p>
283                ' . apply_filters( 'login_form_middle', '', $args ) . '