I am trying to submit comment in Wordpress with Ajax request, but I am struggling with getting the parent comment's id. Is there any function I can use to get them?
I am trying to submit comment in Wordpress with Ajax request, but I am struggling with getting the parent comment's id. Is there any function I can use to get them?
Share Improve this question asked Feb 28, 2020 at 14:53 WinstonWinston 1452 silver badges10 bronze badges 4 |1 Answer
Reset to default -1Since you use Ajax, then I would get the current comment from the REST Api, and then get the parent from that.
wp_localize_script
– Winston Commented Feb 29, 2020 at 2:27