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 |
---|---|
2099 | * @since 3.0.0 |
2100 | * |
2101 | * @param array $fields The default comment fields. |
2102 | */ |
2103 | $fields = apply_filters( 'comment_form_default_fields', $fields ); |
2104 | $defaults = array( |
2105 | 'fields' => $fields, |
2106 | 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . '</label> <textarea id="comment" name="comment" cols="45" rows="8" aria-required="true" required="required"></textarea></p>', |
2107 | /** This filter is documented in wp-includes/link-template.php */ |
2108 | 'must_log_in' => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', |
2109 | /** This filter is documented in wp-includes/link-template.php */ |
2110 | 'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( '<a href="%1$s" aria-label="Logged in as %2$s. Edit your profile.">Logged in as %2$s</a>. <a href="%3$s">Log out?</a>' ), get_edit_user_link(), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', |
2111 | 'comment_notes_before' => '<p class="comment-notes"><span id="email-notes">' . __( 'Your email address will not be published.' ) . '</span>'. ( $req ? $required_text : '' ) . '</p>', |
2112 | 'comment_notes_after' => '', |
2113 | 'id_form' => 'commentform', |
2114 | 'id_submit' => 'submit', |
2115 | 'class_form' => 'comment-form', |
2116 | 'class_submit' => 'submit', |
2117 | 'name_submit' => 'submit', |
2118 | 'title_reply' => __( 'Leave a Reply' ), |
2119 | 'title_reply_to' => __( 'Leave a Reply to %s' ), |