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
2367                ),
2368                '<textarea id="comment" name="comment" cols="45" rows="8" maxlength="65525" required="required"></textarea>'
2369           ),
2370           'must_log_in'          => sprintf(
2371                '<p class="must-log-in">%s</p>',
2372                sprintf(
2373                     /* translators: %s: Login URL. */
2374                     __( 'You must be <a href="%s">logged in</a> to post a comment.' ),
2375                     /** This filter is documented in wp-includes/link-template.php */
2376                     wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ), $post_id ) )
2377                )
2378           ),
2379           'logged_in_as'         => sprintf(
2380                '<p class="logged-in-as">%s</p>',
2381                sprintf(
2382                     /* translators: 1: Edit user link, 2: Accessibility text, 3: User name, 4: Logout URL. */
2383                     __( '<a href="%1$s" aria-label="%2$s">Logged in as %3$s</a>. <a href="%4$s">Log out?</a>' ),
2384                     get_edit_user_link(),
2385                     /* translators: %s: User name. */
2386                     esc_attr( sprintf( __( 'Logged in as %s. Edit your profile.' ), $user_identity ) ),
2387                     $user_identity,
2388                     /** This filter is documented in wp-includes/link-template.php */
2389                     wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ), $post_id ) )
2390                )
2391           ),
2392           'comment_notes_before' => sprintf(
2393                '<p class="comment-notes">%s%s</p>',
2394                sprintf(
2395                     '<span id="email-notes">%s</span>',
2396                     __( 'Your email address will not be published.' )
2397                ),
2398                ( $req ? $required_text : '' )