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
2588                ),
2589                '<textarea id="comment" name="comment" cols="45" rows="8" maxlength="65525"' . $required_attribute . '></textarea>'
2590           ),
2591           'must_log_in'          => sprintf(
2592                '<p class="must-log-in">%s</p>',
2593                sprintf(
2594                     /* translators: %s: Login URL. */
2595                     __( 'You must be <a href="%s">logged in</a> to post a comment.' ),
2596                     /** This filter is documented in wp-includes/link-template.php */
2597                     wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ), $post_id ) )
2598                )
2599           ),
2600           'logged_in_as'         => sprintf(
2601                '<p class="logged-in-as">%s%s</p>',
2602                sprintf(
2603                     /* translators: 1: User name, 2: Edit user link, 3: Logout URL. */
2604                     __( 'Logged in as %1$s. <a href="%2$s">Edit your profile</a>. <a href="%3$s">Log out?</a>' ),
2605                     $user_identity,
2606                     get_edit_user_link(),
2607                     /** This filter is documented in wp-includes/link-template.php */
2608                     wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ), $post_id ) )
2609                ),
2610                $required_text
2611           ),
2612           'comment_notes_before' => sprintf(
2613                '<p class="comment-notes">%s%s</p>',
2614                sprintf(
2615                     '<span id="email-notes">%s</span>',
2616                     __( 'Your email address will not be published.' )
2617                ),