Takes a feedback object and adds it to the WordPress comments.
-
URL
https://plymouthoutdoors.conjured.co.uk/wp-json/wp/v2/comments
-
Method:
POST
-
URL Params
None
-
Data Params
author_email: string (Email of the author) author_name: string (Name of the author) content: string (The feedback message) post: integer (Location ID)
-
Success Response:
[{ id: 1 ... }]
-
Sample Call:
$.ajax({ url: "https://plymouthoutdoors.conjured.co.uk/wp-json/wp/v2/comments", dataType: "json", type: "POST", data: { author_email: "[email protected]", author_name: "author name", content: "test", post: 1 } success: function(r) { console.log(r); } });