Lodol Docs

WordPress

API actions for the WordPress integration.

WordPress

Connect to your WordPress site using an application password to manage posts, categories, tags, and comments.


Create a WordPress category

Add a new category to the WordPress site.

Parameters

ParameterTypeRequiredDescription
namestringYesName of the category
slugstringNoThe short name used in the category's web address, for example news.
descriptionstringNoA short description of the category.

Response

{
  "category": {},
  "status": "mock_value"
}

Create a WordPress comment

Add a comment to a specific WordPress post.

Parameters

ParameterTypeRequiredDescription
post_idnumberYesIdentifier of the post to comment on
contentstringYesThe text of the comment.
author_namestringNoThe name to show as the comment's author.

Response

{
  "comment": {},
  "status": "mock_value"
}

Create a WordPress post

Publish a new post with the provided title and content.

Parameters

ParameterTypeRequiredDescription
titlestringYesTitle of the post
contentstringYesThe main text of the post.
statusstringNoSet the post status, such as draft or publish.

Response

{
  "post": {},
  "status": "mock_value"
}

Delete a WordPress post

Delete a post from your WordPress site.

Parameters

ParameterTypeRequiredDescription
post_idnumberYesThe ID of the post.
forcebooleanNoSet to true to permanently delete the post instead of moving it to the trash.

Response

{
  "result": {},
  "status": "mock_value"
}

List WordPress categories

List categories from your WordPress site.

Parameters

ParameterTypeRequiredDescription
per_pagenumberNoNumber of categories to return.
searchstringNoWords to search for in category names.

Response

{
  "categories": {},
  "count": {},
  "status": "mock_value"
}

List WordPress posts

List posts from your WordPress site.

Parameters

ParameterTypeRequiredDescription
statusstringNoFilter posts by status such as publish or draft
searchstringNoWords to search for in posts.
per_pagenumberNoNumber of posts to return (max 100)

Response

{
  "count": {},
  "posts": {},
  "status": "mock_value"
}

List WordPress tags

List tags from your WordPress site.

Parameters

ParameterTypeRequiredDescription
per_pagenumberNoNumber of tags to return.
searchstringNoWords to search for in tag names.

Response

{
  "count": {},
  "status": "mock_value",
  "tags": {}
}

Update post status

Change the status of a WordPress post.

Parameters

ParameterTypeRequiredDescription
post_idnumberYesThe ID of the post.
statusstringYesThe new status, such as draft or publish.

Response

{
  "post": {},
  "status": "mock_value"
}

On this page