capabilities.work

Comment on Found Post

A 3-step recipe with WordPress. We can help you get access.

Recipe · 3 steps

Comment on Found Post

Find a post by search and add a comment to it.

  1. Search site content scoped to the post type for the supplied query, returning at most one result.
  2. Create a comment against the post found by the search. WordPress returns 201 with the new comment id on success.
  3. List the comments for the post to confirm the newly created comment is present.
What you'll need to have ready
  • query: The search string used to locate the target post.
  • authorName: Display name for the comment author.
  • authorEmail: Email address for the comment author.
  • commentContent: The body of the comment to post.
For your developer

Arazzo workflow wordpress:comment-on-found-post, 3 operations: searchContent → createComment → listComments. Specs on APIs.io.