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