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 |
---|---|
310 | 'id_submit' => 'wp-submit', |
311 | 'remember' => true, |
312 | 'value_username' => '', |
313 | 'value_remember' => false, // Set this to true to default the "Remember me" checkbox to checked |
314 | ); |
315 | $args = wp_parse_args( $args, apply_filters( 'login_form_defaults', $defaults ) ); |
316 |
|
317 | $form = ' |
318 | <form name="' . $args['form_id'] . '" id="' . $args['form_id'] . '" action="' . esc_url( site_url( 'wp-login.php', 'login_post' ) ) . '" method="post"> |
319 | ' . apply_filters( 'login_form_top', '', $args ) . ' |
320 | <p class="login-username"> |
321 | <label for="' . esc_attr( $args['id_username'] ) . '">' . esc_html( $args['label_username'] ) . '</label> |
322 | <input type="text" name="log" id="' . esc_attr( $args['id_username'] ) . '" class="input" value="' . esc_attr( $args['value_username'] ) . '" size="20" /> |
323 | </p> |
324 | <p class="login-password"> |
325 | <label for="' . esc_attr( $args['id_password'] ) . '">' . esc_html( $args['label_password'] ) . '</label> |
326 | <input type="password" name="pwd" id="' . esc_attr( $args['id_password'] ) . '" class="input" value="" size="20" /> |
327 | </p> |
328 | ' . apply_filters( 'login_form_middle', '', $args ) . ' |