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
409                printf( ' | '.__( 'In reply to <a href="%1$s">%2$s</a>.' ), $parent_link, $name );
410           }
411
412           echo '</div>';
413           comment_text();
414           if ( $user_can ) { ?>
415           <div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden">
416           <textarea class="comment" rows="1" cols="1"><?php
417                /** This filter is documented in wp-admin/includes/comment.php */
418                echo esc_textarea( apply_filters( 'comment_edit_pre', $comment->comment_content ) );
419           ?></textarea>
420           <div class="author-email"><?php echo esc_attr( $comment->comment_author_email ); ?></div>
421           <div class="author"><?php echo esc_attr( $comment->comment_author ); ?></div>
422           <div class="author-url"><?php echo esc_attr( $comment->comment_author_url ); ?></div>
423           <div class="comment_status"><?php echo $comment->comment_approved; ?></div>
424           </div>
425           <?php
426           }
427