Change title-reply when actually replying to someone in comment_form
Question
Is there any way to change the comment form title when replying to someone’s comment. For example, I set my comment form title to Leave a comment but when replying to someone’s comment it needs to be changed to Leave a reply. I have tried adding the title_reply_to
in arguments, but it doesn’t seem to work. Here is my comment_form
call..
comment_form(array(
'title_reply' => __( 'Leave a comment', 'pnet'),
'title_reply_to' => __( 'Leave a Reply to %s', 'pnet'),
'cancel_reply_link' => __('Cancel', 'pnet' )
));
I am currently using jQuery to achieve this, but is it possible in native WordPress way?
0
comment-form, comments
3 years
2020-07-14T12:10:24-05:00
2020-07-14T12:10:24-05:00 0 Answers
60 views
0
Leave an answer