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.
Line | Code |
---|---|
2061 | echo '<div id="submitted-on">'; |
2062 | /* translators: 2: comment date, 3: comment time */ |
2063 | printf( __( '<a href="%1$s">%2$s at %3$s</a>' ), $comment_url, |
2064 | /* translators: comment date format. See http://php.net/date */ get_comment_date( __('Y/m/d') ), |
2065 | /* translators: comment time format. See http://php.net/date */ get_comment_date( get_option( 'time_format' ) ) ); |
2066 |
|
2067 | if ( $comment->comment_parent ) { |
2068 | $parent = get_comment( $comment->comment_parent ); |
2069 | $parent_link = esc_url( get_comment_link( $comment->comment_parent ) ); |
2070 | $name = apply_filters( 'get_comment_author', $parent->comment_author ); // there's no API function for this |
2071 | printf( ' | '.__( 'In reply to <a href="%1$s">%2$s</a>.' ), $parent_link, $name ); |
2072 | } |
2073 |
|
2074 | echo '</div>'; |
2075 | comment_text(); |
2076 | if ( $user_can ) { ?> |
2077 | <div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden"> |
2078 | <textarea class="comment" rows="1" cols="1"><?php echo htmlspecialchars( apply_filters('comment_edit_pre', $comment->comment_content), ENT_QUOTES ); ?></textarea> |
2079 | <div class="author-email"><?php echo esc_attr( $comment->comment_author_email ); ?></div> |