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

Custom Post Types

Custom Post Types abilities of the Hostinger AI plugin's WordPress site MCP server. List the public content types registered on the site and manage their entries.

List the public content types registered on the site and manage their entries.

Available: Always.

Ability
What it does
Type

Add a new WordPress custom post type post.

Changes the site

Delete a WordPress custom post type post by ID.

Destructive · Safe to retry

Get a WordPress custom post type post by ID.

Read-only

List all available WordPress custom post types including posts, pages, media, floating elements, my templates, products.

Read-only

Search and filter WordPress custom post types posts including posts, pages, media, floating elements, my templates, products with pagination.

Read-only

Update a WordPress custom post type post by ID.

Changes the site · Safe to retry

Create Custom Post Type Post

hostinger-ai/cpt-create · Changes the site

Add a new WordPress custom post type post.

Required parameter
Type
Description

post_type

string

The custom post type to create

title

string

The title of the post

content

string

The content of the post

Optional parameters (2)
Parameter
Type
Description

excerpt

string

The excerpt of the post

status

string

The status of the post (publish, draft, pending, etc.)

Description sent to AI tools

Add a new WordPress custom post type post

Delete Custom Post Type Post

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

Delete a WordPress custom post type post by ID.

Required parameter
Type
Description

post_type

string

The custom post type to delete

id

integer

The ID of the post to delete

Description sent to AI tools

Delete a WordPress custom post type post by ID. This action cannot be undone.

Get Custom Post Type Post

hostinger-ai/cpt-get · Read-only

Get a WordPress custom post type post by ID.

Required parameter
Type
Description

post_type

string

The custom post type to get

id

integer

The ID of the post to get

Description sent to AI tools

Get a WordPress custom post type post by ID

List Post Types

hostinger-ai/cpt-list-types · Read-only

List all available WordPress custom post types including posts, pages, media, floating elements, my templates, products.

No parameters.

Description sent to AI tools

List all available WordPress custom post types including posts, pages, media, floating elements, my templates, products

Search Custom Post Types Posts

hostinger-ai/cpt-search · Read-only

Search and filter WordPress custom post types posts including posts, pages, media, floating elements, my templates, products with pagination.

Required parameter
Type
Description

post_type

string

The custom post type to search

Optional parameters (5)
Parameter
Type
Default
Description

search

string

Search term to look for in post titles and content

author

integer

Filter by author ID

status

string

Filter by post status (publish, draft, pending, etc.)

page

integer

1

Page number for pagination (starts from 1)

per_page

integer

10

Number of posts per page

Description sent to AI tools

Search and filter WordPress custom post types posts including posts, pages, media, floating elements, my templates, products with pagination

Update Custom Post Type Post

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

Update a WordPress custom post type post by ID.

Required parameter
Type
Description

post_type

string

The custom post type to update

id

integer

The ID of the post to update

Optional parameters (4)
Parameter
Type
Description

title

string

The title of the post

content

string

The content of the post

excerpt

string

The excerpt of the post

status

string

The status of the post (publish, draft, pending, etc.)

Description sent to AI tools

Update a WordPress custom post type post by ID

Last updated

Was this helpful?