enter image description here

I have few custom comment’s fields – phone and code, stored as comment meta.
On comments edit page (edit-comments.php) I display these values in custom columns. On post edit page (post.php) I also display these values in comments metabox using get_comment_text filter:

add_filter( 'get_comment_text', function( $comment_comment_content, $comment, $args ){

    if( doing_action( 'wp_ajax_get-comments' ) ){

        $phone = get_comment_meta( $comment->comment_ID, 'phone', true );
        $code  = get_comment_meta( $comment->comment_ID, 'code', true );

            $out .=  __( 'Phone', 'kvkoolitus' ) . ': ' . $phone;

            $out .= __( 'Code', 'kvkoolitus' ) . ': ' . $code;

        echo $out;


return $comment_comment_content;

}, 10, 3 );


I need to know how to show/refresh these values after someone clicks Update Comment button on Quick Edit form.

1) How to update custom columns on comment edit page after comment quick update?
2) How to update comment text in comments metabox on post edit page after comment quick update?

Any suggestions?

Read more here: Display comment meta data after quick update


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: