如何在评论表单数组中回显当前 post 标题?

How to echo current post title in comment form array?

我有这个代码:

        comment_form( 
        array(
            'fields'                => $fields, 
            'comment_field'         => $comment_field, 
            'label_submit'          => 'Plaatsen', 
            'comment_notes_before'  => '', 
            'comment_notes_after'   => '', 
            'title_reply'           => 'Wat is jouw ervaring met'
        )
    ); 

我想在 title_reply 数组后面回显当前 post 标题,如下所示:

'title_reply'           => 'Wat is jouw ervaring met <?php echo get_the_title( $ID ); ?> ? '

谁能帮我正确地做到这一点?

尝试使用下面的代码

$comment_form = array( 
    'fields' => $fields, 
    'comment_field' => $comment_field, 
    'label_submit' => 'Plaatsen', 
    'comment_notes_before' => '', 
    'comment_notes_after' => '', 
    'title_reply' => 'Wat is jouw ervaring met'
     );

`echo $comment_form['title_reply']; `
'title_reply' => 'Wat is jouw ervaring met ' . get_the_title($ID)