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

WooCommerce Products

WooCommerce Products abilities of the Hostinger AI plugin's WordPress site MCP server. Manage products and their categories, tags and brands.

Manage products and their categories, tags and brands.

Available: Only while WooCommerce is active on the site.

Ability
What it does
Type

Create a new WooCommerce product brand.

Changes the site

Delete a WooCommerce product brand by ID.

Destructive · Safe to retry

List all WooCommerce product brands.

Read-only

Update an existing WooCommerce product brand by ID.

Changes the site · Safe to retry

Create a new WooCommerce product category.

Changes the site

Delete a WooCommerce product category by ID.

Destructive · Safe to retry

List all WooCommerce product categories.

Read-only

Update an existing WooCommerce product category by ID.

Changes the site · Safe to retry

Create a new WooCommerce product tag.

Changes the site

Delete a WooCommerce product tag by ID.

Destructive · Safe to retry

List all WooCommerce product tags.

Read-only

Update an existing WooCommerce product tag by ID.

Changes the site · Safe to retry

Create a new WooCommerce product.

Changes the site

Delete a WooCommerce product by ID.

Destructive · Safe to retry

Get a single WooCommerce product by ID.

Read-only

Search and filter WooCommerce products with pagination.

Read-only

Update an existing WooCommerce product by ID.

Changes the site · Safe to retry

Create WooCommerce Product Brand

hostinger-ai/wc-product-brands-create · Changes the site

Create a new WooCommerce product brand.

No required parameters.

Optional parameters (7)
Parameter
Type
Default
Description

name

string

Category name.

slug

string

An alphanumeric identifier for the resource unique to its type.

parent

integer

The ID for the parent of the resource.

description

string

HTML description of the resource.

display

one of default, products, subcategories, both

default

Category archive display type.

image

object

Image data.

menu_order

integer

Menu order, used to custom sort the resource.

Description sent to AI tools

Create a new WooCommerce product brand. Requires name.

Delete WooCommerce Product Brand

hostinger-ai/wc-product-brands-delete · Destructive · Safe to retry

Delete a WooCommerce product brand by ID.

Required parameter
Type
Description

id

integer

Unique identifier for the resource

Optional parameters (1)
Parameter
Type
Description

force

boolean

Force Product Brand deletion

List WooCommerce Product Brands

hostinger-ai/wc-product-brands-list · Read-only

List all WooCommerce product brands.

No required parameters.

Optional parameters (13)
Parameter
Type
Default
Description

context

one of view, 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.

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. Applies to hierarchical taxonomies only.

order

one of asc, desc

asc

Order sort attribute ascending or descending.

orderby

one of id, include, name, slug, term_group, description, count

name

Sort collection by resource attribute.

hide_empty

boolean

false

Whether to hide resources not assigned to any products.

parent

integer

Limit result set to resources assigned to a specific parent. Applies to hierarchical taxonomies only.

product

integer

Limit result set to resources assigned to a specific product.

slug

array of string

Limit result set to resources with a specific slug.

Description sent to AI tools

List all WooCommerce product brands. Returns a list of product brands.

Update WooCommerce Product Brand

hostinger-ai/wc-product-brands-update · Changes the site · Safe to retry

Update an existing WooCommerce product brand by ID.

Required parameter
Type
Description

id

integer

Unique identifier for the resource

Optional parameters (7)
Parameter
Type
Description

name

string

Category name.

slug

string

An alphanumeric identifier for the resource unique to its type.

parent

integer

The ID for the parent of the resource.

description

string

HTML description of the resource.

display

one of default, products, subcategories, both

Category archive display type.

image

object

Image data.

menu_order

integer

Menu order, used to custom sort the resource.

Create WooCommerce Product Category

hostinger-ai/wc-product-categories-create · Changes the site

Create a new WooCommerce product category.

No required parameters.

Optional parameters (6)
Parameter
Type
Default
Description

name

string

Category name.

slug

string

An alphanumeric identifier for the resource unique to its type.

parent

integer

The ID for the parent of the resource.

description

string

HTML description of the resource.

display

one of default, products, subcategories, both

default

Category archive display type.

image

object

Image data.

Description sent to AI tools

Create a new WooCommerce product category. Requires name.

Delete WooCommerce Product Category

hostinger-ai/wc-product-categories-delete · Destructive · Safe to retry

Delete a WooCommerce product category by ID.

Required parameter
Type
Description

id

integer

Unique identifier for the resource

Optional parameters (1)
Parameter
Type
Description

force

boolean

Force category deletion

List WooCommerce Product Categories

hostinger-ai/wc-product-categories-list · Read-only

List all WooCommerce product categories.

No required parameters.

Optional parameters (13)
Parameter
Type
Default
Description

context

one of view, 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.

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. Applies to hierarchical taxonomies only.

order

one of asc, desc

asc

Order sort attribute ascending or descending.

orderby

one of id, include, name, slug, term_group, description, count

name

Sort collection by resource attribute.

hide_empty

boolean

false

Whether to hide resources not assigned to any products.

parent

integer

Limit result set to resources assigned to a specific parent. Applies to hierarchical taxonomies only.

product

integer

Limit result set to resources assigned to a specific product.

slug

array of string

Limit result set to resources with a specific slug.

Description sent to AI tools

List all WooCommerce product categories. Returns a list of product categories.

Update WooCommerce Product Category

hostinger-ai/wc-product-categories-update · Changes the site · Safe to retry

Update an existing WooCommerce product category by ID.

Required parameter
Type
Description

id

integer

Unique identifier for the resource

Optional parameters (6)
Parameter
Type
Description

name

string

Category name.

slug

string

An alphanumeric identifier for the resource unique to its type.

parent

integer

The ID for the parent of the resource.

description

string

HTML description of the resource.

display

one of default, products, subcategories, both

Category archive display type.

image

object

Image data.

Create WooCommerce Product Tag

hostinger-ai/wc-product-tags-create · Changes the site

Create a new WooCommerce product tag.

No required parameters.

Optional parameters (3)
Parameter
Type
Description

name

string

Tag name.

slug

string

An alphanumeric identifier for the resource unique to its type.

description

string

HTML description of the resource.

Description sent to AI tools

Create a new WooCommerce product tag. Requires name.

Delete WooCommerce Product Tag

hostinger-ai/wc-product-tags-delete · Destructive · Safe to retry

Delete a WooCommerce product tag by ID.

Required parameter
Type
Description

id

integer

Unique identifier for the resource

Optional parameters (1)
Parameter
Type
Description

force

boolean

Force tag deletion

List WooCommerce Product Tags

hostinger-ai/wc-product-tags-list · Read-only

List all WooCommerce product tags.

No required parameters.

Optional parameters (13)
Parameter
Type
Default
Description

context

one of view, 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.

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. Applies to hierarchical taxonomies only.

order

one of asc, desc

asc

Order sort attribute ascending or descending.

orderby

one of id, include, name, slug, term_group, description, count

name

Sort collection by resource attribute.

hide_empty

boolean

false

Whether to hide resources not assigned to any products.

parent

integer

Limit result set to resources assigned to a specific parent. Applies to hierarchical taxonomies only.

product

integer

Limit result set to resources assigned to a specific product.

slug

array of string

Limit result set to resources with a specific slug.

Description sent to AI tools

List all WooCommerce product tags. Returns a list of product tags.

Update WooCommerce Product Tag

hostinger-ai/wc-product-tags-update · Changes the site · Safe to retry

Update an existing WooCommerce product tag by ID.

Required parameter
Type
Description

id

integer

Unique identifier for the resource

Optional parameters (3)
Parameter
Type
Description

name

string

Tag name.

slug

string

An alphanumeric identifier for the resource unique to its type.

description

string

HTML description of the resource.

Create WooCommerce Product

hostinger-ai/wc-products-create · Changes the site

Create a new WooCommerce product.

No required parameters.

Optional parameters (50)
Parameter
Type
Default
Description

name

string

Product name.

slug

string

Product slug.

date_created

null or string

The date the product was created, in the site's timezone.

date_created_gmt

null or string

The date the product was created, as GMT.

type

one of simple, grouped, external, variable

simple

Product type.

status

one of draft, pending, private, publish, future, auto-draft, trash

publish

Product status (post status).

featured

boolean

false

Featured product.

catalog_visibility

one of visible, catalog, search, hidden

visible

Catalog visibility.

description

string

Product description.

short_description

string

Product short description.

sku

string

Stock Keeping Unit.

global_unique_id

string

GTIN, UPC, EAN or ISBN.

regular_price

string

Product regular price.

sale_price

string

Product sale price.

date_on_sale_from

null or string

Start date of sale price, in the site's timezone.

date_on_sale_from_gmt

null or string

Start date of sale price, as GMT.

date_on_sale_to

null or string

End date of sale price, in the site's timezone.

date_on_sale_to_gmt

null or string

End date of sale price, in the site's timezone.

virtual

boolean

false

If the product is virtual.

downloadable

boolean

false

If the product is downloadable.

downloads

array of object

List of downloadable files.

download_limit

integer

-1

Number of times downloadable files can be downloaded after purchase.

download_expiry

integer

-1

Number of days until access to downloadable files expires.

external_url

string

Product external URL. Only for external products.

button_text

string

Product external button text. Only for external products.

tax_status

one of taxable, shipping, none

taxable

Tax status.

tax_class

string

Tax class.

manage_stock

boolean

false

Stock management at product level.

stock_quantity

integer

Stock quantity.

stock_status

one of instock, outofstock, onbackorder

instock

Controls the stock status of the product.

backorders

one of no, notify, yes

no

If managing stock, this controls if backorders are allowed.

low_stock_amount

integer or null

Low Stock amount for the product.

sold_individually

boolean

false

Allow one item to be bought in a single order.

weight

string

Product weight (lbs).

dimensions

object

Product dimensions.

shipping_class

string

Shipping class slug.

reviews_allowed

boolean

true

Allow reviews.

post_password

string

Post password.

upsell_ids

array of integer

List of up-sell products IDs.

cross_sell_ids

array of integer

List of cross-sell products IDs.

parent_id

integer

Product parent ID.

purchase_note

string

Optional note to send the customer after purchase.

categories

array of object

List of categories.

brands

array of object

List of brands.

tags

array of object

List of tags.

images

array of object

List of images.

attributes

array of object

List of attributes.

default_attributes

array of object

Defaults variation attributes.

menu_order

integer

Menu order, used to custom sort products.

meta_data

array of object

Meta data.

Description sent to AI tools

Create a new WooCommerce product. Requires name and other product details.

Delete WooCommerce Product

hostinger-ai/wc-products-delete · Destructive · Safe to retry

Delete a WooCommerce product by ID.

Required parameter
Type
Description

id

integer

Unique identifier for the resource

Description sent to AI tools

Delete a WooCommerce product by ID. This action cannot be undone.

Get WooCommerce Product

hostinger-ai/wc-products-get · Read-only

Get a single WooCommerce product by ID.

Required parameter
Type
Description

id

integer

Unique identifier for the resource

Description sent to AI tools

Get a single WooCommerce product by ID. Returns the full product object with all fields.

Search WooCommerce Products

hostinger-ai/wc-products-search · Read-only

Search and filter WooCommerce products with pagination.

No required parameters.

Optional parameters (40)
Parameter
Type
Default
Description

context

one of view, 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.

dates_are_gmt

boolean

false

Whether to consider GMT post dates when limiting response by published or modified date.

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, id, include, title, slug, modified, popularity, rating, post__in, price, sales, menu_order, random, popularity, rating, menu_order, price, popularity, rating

date

Sort collection by object attribute.

parent

array of integer

[]

Limit result set to those of particular parent IDs.

parent_exclude

array of integer

[]

Limit result set to all items except those of a particular parent ID.

brand

string

Limit result set to products assigned a specific brand ID.

slug

string

Limit result set to products with a specific slug.

status

one of any, future, trash, draft, pending, private, publish

any

Limit result set to products assigned a specific status.

type

one of simple, grouped, external, variable

Limit result set to products assigned a specific type.

sku

string

Limit result set to products with specific SKU(s). Use commas to separate.

featured

boolean

Limit result set to featured products.

category

string

Limit result set to products assigned a specific category ID.

tag

string

Limit result set to products assigned a specific tag ID.

shipping_class

string

Limit result set to products assigned a specific shipping class ID.

attribute

string

Limit result set to products with a specific attribute. Use the taxonomy name/attribute slug.

attribute_term

string

Limit result set to products with a specific attribute term ID (required an assigned attribute).

on_sale

boolean

Limit result set to products on sale.

min_price

string

Limit result set to products based on a minimum price.

max_price

string

Limit result set to products based on a maximum price.

include_meta

array of string

[]

Limit meta_data to specific keys.

exclude_meta

array of string

[]

Ensure meta_data excludes specific keys.

image_size

string

full

Image size to return. Accepts any registered WordPress image size.

stock_status

one of instock, outofstock, onbackorder

Limit result set to products with specified stock status.

search_sku

string

Limit results to those with a SKU that partial matches a string. This argument takes precedence over 'sku'.

search_name_or_sku

string

Limit results to those with a name or SKU that partial matches a string. This argument takes precedence over 'search', 'sku' and 'search_sku'.

search_fields

array of name, global_unique_id, description, short_description, sku

[]

Limit search to specific fields when used with search parameter. Available fields: name, sku, global_unique_id, description, short_description. This argument takes precedence over all other search parameters.

include_status

array of any, future, trash, draft, pending, private, publish

Limit result set to products with any of the statuses.

exclude_status

array of future, trash, draft, pending, private, publish

Exclude products with any of the statuses from result set.

include_types

array of simple, grouped, external, variable

Limit result set to products with any of the types.

exclude_types

array of simple, grouped, external, variable

Exclude products with any of the types from result set.

downloadable

boolean

Limit result set to downloadable products.

virtual

boolean

Limit result set to virtual products.

pos_products_only

boolean

Limit result set to products visible in Point of Sale.

Description sent to AI tools

Search and filter WooCommerce products with pagination. Returns a list of products matching the search criteria.

Update WooCommerce Product

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

Update an existing WooCommerce product by ID.

Required parameter
Type
Description

id

integer

Unique identifier for the resource

Optional parameters (50)
Parameter
Type
Description

name

string

Product name.

slug

string

Product slug.

date_created

null or string

The date the product was created, in the site's timezone.

date_created_gmt

null or string

The date the product was created, as GMT.

type

one of simple, grouped, external, variable

Product type.

status

one of draft, pending, private, publish, future, auto-draft, trash

Product status (post status).

featured

boolean

Featured product.

catalog_visibility

one of visible, catalog, search, hidden

Catalog visibility.

description

string

Product description.

short_description

string

Product short description.

sku

string

Stock Keeping Unit.

global_unique_id

string

GTIN, UPC, EAN or ISBN.

regular_price

string

Product regular price.

sale_price

string

Product sale price.

date_on_sale_from

null or string

Start date of sale price, in the site's timezone.

date_on_sale_from_gmt

null or string

Start date of sale price, as GMT.

date_on_sale_to

null or string

End date of sale price, in the site's timezone.

date_on_sale_to_gmt

null or string

End date of sale price, in the site's timezone.

virtual

boolean

If the product is virtual.

downloadable

boolean

If the product is downloadable.

downloads

array of object

List of downloadable files.

download_limit

integer

Number of times downloadable files can be downloaded after purchase.

download_expiry

integer

Number of days until access to downloadable files expires.

external_url

string

Product external URL. Only for external products.

button_text

string

Product external button text. Only for external products.

tax_status

one of taxable, shipping, none

Tax status.

tax_class

string

Tax class.

manage_stock

boolean

Stock management at product level.

stock_quantity

integer

Stock quantity.

stock_status

one of instock, outofstock, onbackorder

Controls the stock status of the product.

backorders

one of no, notify, yes

If managing stock, this controls if backorders are allowed.

low_stock_amount

integer or null

Low Stock amount for the product.

sold_individually

boolean

Allow one item to be bought in a single order.

weight

string

Product weight (lbs).

dimensions

object

Product dimensions.

shipping_class

string

Shipping class slug.

reviews_allowed

boolean

Allow reviews.

post_password

string

Post password.

upsell_ids

array of integer

List of up-sell products IDs.

cross_sell_ids

array of integer

List of cross-sell products IDs.

parent_id

integer

Product parent ID.

purchase_note

string

Optional note to send the customer after purchase.

categories

array of object

List of categories.

brands

array of object

List of brands.

tags

array of object

List of tags.

images

array of object

List of images.

attributes

array of object

List of attributes.

default_attributes

array of object

Defaults variation attributes.

menu_order

integer

Menu order, used to custom sort products.

meta_data

array of object

Meta data.

Description sent to AI tools

Update an existing WooCommerce product by ID. Only provided fields will be updated.

Last updated

Was this helpful?