Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: comment_edit_pre

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

Line Code
2144                     break;
2145                case 'comment':
2146                     echo "<td $attributes>";
2147                     echo '<div id="submitted-on">';
2148                     printf(__('Submitted on <a href="%1$s">%2$s at %3$s</a>'), get_comment_link($comment->comment_ID), get_comment_date(__('Y/m/d')), get_comment_date(__('g:ia')));
2149                     echo '</div>';
2150                     comment_text();
2151                     if ( $user_can ) { ?>
2152                     <div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden">
2153                     <textarea class="comment" rows="1" cols="1"><?php echo htmlspecialchars( apply_filters('comment_edit_pre', $comment->comment_content), ENT_QUOTES ); ?></textarea>
2154                     <div class="author-email"><?php echo esc_attr( $comment->comment_author_email ); ?></div>
2155                     <div class="author"><?php echo esc_attr( $comment->comment_author ); ?></div>
2156                     <div class="author-url"><?php echo esc_attr( $comment->comment_author_url ); ?></div>
2157                     <div class="comment_status"><?php echo $comment->comment_approved; ?></div>
2158                     </div>
2159                     <?php
2160                     }
2161
2162                     if ( $user_can ) {