Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: the_permalink

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

This hook occurs 2 times in this file.

Line Code
2246       * @since 3.0.0
2247       *
2248       * @param array $fields The default comment fields.
2249       */
2250      $fields = apply_filters( 'comment_form_default_fields', $fields );
2251      $defaults = array(
2252           'fields'               => $fields,
2253           '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>',
2254           /** This filter is documented in wp-includes/link-template.php */
2255           '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>',
2256           /** This filter is documented in wp-includes/link-template.php */
2257           'logged_in_as'         => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>' ), get_edit_user_link(), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
2258           'comment_notes_before' => '<p class="comment-notes"><span id="email-notes">' . __( 'Your email address will not be published.' ) . '</span>'. ( $req ? $required_text : '' ) . '</p>',
2259           'comment_notes_after'  => '',
2260           'id_form'              => 'commentform',
2261           'id_submit'            => 'submit',
2262           'class_submit'         => 'submit',
2263           'name_submit'          => 'submit',
2264           'title_reply'          => __( 'Leave a Reply' ),
2265           'title_reply_to'       => __( 'Leave a Reply to %s' ),
2266           'cancel_reply_link'    => __( 'Cancel reply' ),