For the complete documentation index, see llms.txt. This page is also available as Markdown.

Comments

Comments abilities of the Hostinger AI plugin's WordPress site MCP server. Search, read and reply to comments, and approve, unapprove or mark them as spam.

Search, read and reply to comments, and approve, unapprove or mark them as spam.

Available: Always.

Ability
What it does
Type

Approve a WordPress comment by ID, making it publicly visible.

Changes the site · Safe to retry

Create a new WordPress comment on a post.

Changes the site

Delete a WordPress comment by ID.

Destructive · Safe to retry

Get a single WordPress comment by ID.

Read-only

Search and filter WordPress comments with pagination.

Read-only

Mark a WordPress comment as spam by ID.

Changes the site · Safe to retry

Unapprove a WordPress comment by ID, moving it back to pending moderation.

Changes the site · Safe to retry

Restore a WordPress comment that was marked as spam by ID.

Changes the site · Safe to retry

Update an existing WordPress comment by ID.

Changes the site · Safe to retry

Approve Comment

hostinger-ai/comments-approve · Changes the site · Safe to retry

Approve a WordPress comment by ID, making it publicly visible.

Required parameter
Type
Description

id

integer

Unique identifier for the comment

Create Comment

hostinger-ai/comments-create · Changes the site

Create a new WordPress comment on a post.

Required parameter
Type
Default
Description

post

integer

0

ID of the post the comment belongs to.

content

string

Content of the comment.

Optional parameters (9)
Parameter
Type
Default
Description

author

integer

The ID of the user object, if author was a user.

author_email

string

Email address for the comment author.

author_ip

string

IP address for the comment author.

author_name

string

Display name for the comment author.

author_url

string

URL for the comment author.

author_user_agent

string

User agent for the comment author.

parent

integer

0

The ID for the parent of the comment.

status

string

State of the comment.

meta

object

Meta fields.

Description sent to AI tools

Create a new WordPress comment on a post. Requires the post ID and the comment content.

Delete Comment

hostinger-ai/comments-delete · Destructive · Safe to retry

Delete a WordPress comment by ID.

Required parameter
Type
Description

id

integer

Unique identifier for the resource

Optional parameters (1)
Parameter
Type
Description

force

boolean

Skip the trash and delete the comment permanently.

Description sent to AI tools

Delete a WordPress comment by ID. The comment is moved to trash unless force is true, which deletes it permanently.

Get Comment

hostinger-ai/comments-get · Read-only

Get a single WordPress comment by ID.

Required parameter
Type
Description

id

integer

Unique identifier for the resource

Description sent to AI tools

Get a single WordPress comment by ID. Returns the full comment object with all fields.

Search Comments

hostinger-ai/comments-search · Read-only

Search and filter WordPress comments with pagination.

No required parameters.

Optional parameters (18)
Parameter
Type
Default
Description

context

one of view, embed, edit

view

Scope under which the request is made; determines fields present in response.

page

integer

1

Current page of the collection.

per_page

integer

10

Maximum number of items to be returned in result set.

search

string

Limit results to those matching a string.

author

array of integer

Limit result set to comments assigned to specific user IDs. Requires authorization.

author_exclude

array of integer

Ensure result set excludes comments assigned to specific user IDs. Requires authorization.

author_email

string

Limit result set to that from a specific author email. Requires authorization.

exclude

array of integer

[]

Ensure result set excludes specific IDs.

include

array of integer

[]

Limit result set to specific IDs.

offset

integer

Offset the result set by a specific number of items.

order

one of asc, desc

desc

Order sort attribute ascending or descending.

orderby

one of date, date_gmt, id, include, post, parent, type

date_gmt

Sort collection by comment attribute.

parent

array of integer

[]

Limit result set to comments of specific parent IDs.

parent_exclude

array of integer

[]

Ensure result set excludes specific parent IDs.

post

array of integer

[]

Limit result set to comments assigned to specific post IDs.

status

string

approve

Moderation status to filter by: approve, hold (pending), spam, trash or all.

type

string

comment

Comment type to filter by, for example comment or review. Use an empty value to return all types.

password

string

The password for the post if it is password protected.

Description sent to AI tools

Search and filter WordPress comments with pagination. Use status to filter by moderation state (approve, hold, spam, trash, all) and type to filter by comment type (comment, review for WooCommerce product reviews).

Mark Comment As Spam

hostinger-ai/comments-spam · Changes the site · Safe to retry

Mark a WordPress comment as spam by ID.

Required parameter
Type
Description

id

integer

Unique identifier for the comment

Unapprove Comment

hostinger-ai/comments-unapprove · Changes the site · Safe to retry

Unapprove a WordPress comment by ID, moving it back to pending moderation.

Required parameter
Type
Description

id

integer

Unique identifier for the comment

Unmark Comment As Spam

hostinger-ai/comments-unspam · Changes the site · Safe to retry

Restore a WordPress comment that was marked as spam by ID.

Required parameter
Type
Description

id

integer

Unique identifier for the comment

Description sent to AI tools

Restore a WordPress comment that was marked as spam by ID. The comment returns to its previous moderation status.

Update Comment

hostinger-ai/comments-update · Changes the site · Safe to retry

Update an existing WordPress comment by ID.

Required parameter
Type
Description

id

integer

Unique identifier for the resource

Optional parameters (11)
Parameter
Type
Description

author

integer

The ID of the user object, if author was a user.

author_email

string

Email address for the comment author.

author_ip

string

IP address for the comment author.

author_name

string

Display name for the comment author.

author_url

string

URL for the comment author.

author_user_agent

string

User agent for the comment author.

content

string

Content of the comment.

parent

integer

The ID for the parent of the comment.

post

integer

The ID of the associated post object.

status

string

State of the comment.

meta

object

Meta fields.

Description sent to AI tools

Update an existing WordPress comment by ID. Only provided fields will be updated. Use status to change the moderation state (approved, hold, spam, trash).

Last updated

Was this helpful?