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 |
|---|---|
| 2388 | ), |
| 2389 | '<textarea id="comment" name="comment" cols="45" rows="8" maxlength="65525" required="required"></textarea>' |
| 2390 | ), |
| 2391 | 'must_log_in' => sprintf( |
| 2392 | '<p class="must-log-in">%s</p>', |
| 2393 | sprintf( |
| 2394 | /* translators: %s: Login URL. */ |
| 2395 | __( 'You must be <a href="%s">logged in</a> to post a comment.' ), |
| 2396 | /** This filter is documented in wp-includes/link-template.php */ |
| 2397 | wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ), $post_id ) ) |
| 2398 | ) |
| 2399 | ), |
| 2400 | 'logged_in_as' => sprintf( |
| 2401 | '<p class="logged-in-as">%s</p>', |
| 2402 | sprintf( |
| 2403 | /* translators: 1: Edit user link, 2: Accessibility text, 3: User name, 4: Logout URL. */ |
| 2404 | __( '<a href="%1$s" aria-label="%2$s">Logged in as %3$s</a>. <a href="%4$s">Log out?</a>' ), |
| 2405 | get_edit_user_link(), |
| 2406 | /* translators: %s: User name. */ |
| 2407 | esc_attr( sprintf( __( 'Logged in as %s. Edit your profile.' ), $user_identity ) ), |
| 2408 | $user_identity, |
| 2409 | /** This filter is documented in wp-includes/link-template.php */ |
| 2410 | wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ), $post_id ) ) |
| 2411 | ) |
| 2412 | ), |
| 2413 | 'comment_notes_before' => sprintf( |
| 2414 | '<p class="comment-notes">%s%s</p>', |
| 2415 | sprintf( |
| 2416 | '<span id="email-notes">%s</span>', |
| 2417 | __( 'Your email address will not be published.' ) |
| 2418 | ), |
| 2419 | ( $req ? $required_text : '' ) |