comment_edit_pre

comment_edit_pre

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('comment_edit_pre') is found 2 times:

  • /wp-admin/includes/class-wp-comments-list-table.php line 961
    		comment_text( $comment );
    
    		if ( $this->user_can ) {
    			/** This filter is documented in wp-admin/includes/comment.php */
    			$comment_content = apply_filters( 'comment_edit_pre', $comment->comment_content );
    			?>
    		<div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden">
    			<textarea class="comment" rows="1" cols="1"><?php echo esc_textarea( $comment_content ); ?></textarea>
    			<div class="author-email"><?php echo esc_html( $comment->comment_author_email ); ?></div>
    			<div class="author"><?php echo esc_html( $comment->comment_author ); ?></div>
    			<div class="author-url"><?php echo esc_url( $comment->comment_author_url ); ?></div>
    
  • /wp-admin/includes/comment.php line 127
    	 * @since 2.0.0
    	 *
    	 * @param string $comment_content Comment content.
    	 */
    	$comment->comment_content = apply_filters( 'comment_edit_pre', $comment->comment_content );
    
    	$comment->comment_author       = format_to_edit( $comment->comment_author );
    	$comment->comment_author_email = format_to_edit( $comment->comment_author_email );
    	$comment->comment_author_url   = format_to_edit( $comment->comment_author_url );
    	$comment->comment_author_url   = esc_url( $comment->comment_author_url );
    
    

See this hook used in plugins: