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
2215       */
2216      $fields = apply_filters( 'comment_form_default_fields', $fields );
2217      $defaults = array(
2218           'fields'               => $fields,
2219           'comment_field'        => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . '</label> <textarea id="comment" name="comment" cols="45" rows="8" maxlength="65525" aria-required="true" required="required"></textarea></p>',
2220           /** This filter is documented in wp-includes/link-template.php */
2221           'must_log_in'          => '<p class="must-log-in">' . sprintf(
2222                                         /* translators: %s: login URL */
2223                                         __( 'You must be <a href="%s">logged in</a> to post a comment.' ),
2224                                         wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ), $post_id ) )
2225                                     ) . '</p>',
2226           /** This filter is documented in wp-includes/link-template.php */
2227           'logged_in_as'         => '<p class="logged-in-as">' . sprintf(
2228                                         /* translators: 1: edit user link, 2: accessibility text, 3: user name, 4: logout URL */
2229                                         __( '<a href="%1$s" aria-label="%2$s">Logged in as %3$s</a>. <a href="%4$s">Log out?</a>' ),
2230                                         get_edit_user_link(),
2231                                         /* translators: %s: user name */
2232                                         esc_attr( sprintf( __( 'Logged in as %s. Edit your profile.' ), $user_identity ) ),
2233                                         $user_identity,
2234                                         wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ), $post_id ) )
2235                                     ) . '</p>',
2236           'comment_notes_before' => '<p class="comment-notes"><span id="email-notes">' . __( 'Your email address will not be published.' ) . '</span>'. ( $req ? $required_text : '' ) . '</p>',
2237           'comment_notes_after'  => '',
2238           'action'               => site_url( '/wp-comments-post.php' ),
2239           'id_form'              => 'commentform',
2240           'id_submit'            => 'submit',
2241           'class_form'           => 'comment-form',
2242           'class_submit'         => 'submit',
2243           'name_submit'          => 'submit',