Title: W3S API Extension for Woocommerce
Author: w3specialists.com
Published: <strong>Июнь 2, 2025-ж.</strong>
Last modified: Июнь 2, 2025-ж.

---

Плагиндерди издөө

![](https://ps.w.org/w3s-api-extension/assets/icon-256x256.png?rev=3304946)

# W3S API Extension for Woocommerce

 Автору [w3specialists.com](https://profiles.wordpress.org/w3specialists/)

[Жүктөө](https://downloads.wordpress.org/plugin/w3s-api-extension.1.0.1.zip)

 * [Кенен маалымат](https://ky.wordpress.org/plugins/w3s-api-extension/#description)
 * [Сын-пикирлер](https://ky.wordpress.org/plugins/w3s-api-extension/#reviews)
 *  [Орнотуу](https://ky.wordpress.org/plugins/w3s-api-extension/#installation)
 * [Development](https://ky.wordpress.org/plugins/w3s-api-extension/#developers)

 [Колдоо](https://wordpress.org/support/plugin/w3s-api-extension/)

## Сүрөттөө

Enhances your store’s REST API by adding powerful, flexible endpoints.
 Stay tuned
more are coming!

**Add or Remove a Single Category**

Easily append or remove one category at a time—by numeric ID or human-friendly slug—
using simple POST/PUT/PATCH or DELETE requests to
 /wp-json/wc/v3/products/{product_id}/
categories/{identifier}

**Batch Manage Multiple Categories**

In a single call, add or remove multiple categories at once via JSON payloads to
/
wp-json/wc/v3/products/{product_id}/categories Supply an array of IDs or slugs under
the “categories” key to update your product’s category list in bulk.

**Automatic Slug Resolution**
 Pass slugs like “summer-collection” and the plugin
will resolve them to the correct WooCommerce term IDs on the fly—no extra lookups
required.

**Non-Destructive Updates**
 Neither endpoint touches other product data. Categories
are merged or pruned transparently without overwriting prices, stock, attributes,
or any other fields.

Built-In Validation & Security

Sanitization of all inputs (IDs and slugs) to guard against bad data.

Permission checks ensure only users with the edit_products capability (Shop Manager,
Admin) can modify categories.

Clear, standardized error codes (w3s_api_extension_invalid_product and w3s_api_extension_invalid_product_category)
for consistent API responses.

W3S API Extension for WooCommerce installs alongside the core WooCommerce REST API,
requires no additional configuration, and works out of the box.

### Endpoints Documentation

**Product Categories**

 *  Add a single category
    - **Type:** HTTP request
    - **Endpoint:** `/wp-json/wc/v3/products/{product_id}/categories/{identifier}`
    - **Methods:** POST, PUT, PATCH
    - **Examples:**
       curl -X PUT https://example.com/wp-json/wc/v3/products/125/
      categories/18 \ -u consumer_key:consumer_secret curl -X PUT https://example.
      com/wp-json/wc/v3/products/125/categories/my-category \ -u consumer_key:consumer_secret
 *  Remove a single category
    - **Type:** HTTP request
    - **Endpoint:** `/wp-json/wc/v3/products/{product_id}/categories/{identifier}`
    - **Methods:** DELETE
    - **Examples:**
       curl -X DELETE https://example.com/wp-json/wc/v3/products/125/
      categories/18 \ -u consumer_key:consumer_secret curl -X DELETE https://example.
      com/wp-json/wc/v3/products/125/categories/my-category \ -u consumer_key:consumer_secret
 *  Batch add categories
    - **Type:** HTTP request
    - **Endpoint:** `/wp-json/wc/v3/products/{product_id}/categories`
    - **Methods:** POST, PUT, PATCH
    - **Example:**
       curl -X PUT https://example.com/wp-json/wc/v3/products/125/categories\-
      u consumer_key:consumer_secret \ -H “Content-Type: application/json” \ -d ‘{“
      categories”: [1,”my-category”,3,”my-category-1″]}’
 *  Batch delete categories
    - **Type:** HTTP request
    - **Endpoint:** `/wp-json/wc/v3/products/{product_id}/categories`
    - **Methods:** DELETE
    - **Example:**
       curl -X DELETE https://example.com/wp-json/wc/v3/products/125/
      categories \ -u consumer_key:consumer_secret \ -H “Content-Type: application/
      json” \ -d ‘{“categories”: [1,”my-category”,3,”my-category-1″]}’

**Extra notes**

 *  The single category endpoint doesn’t allow slug with characters anything other
   than latin & numbers [a-z0-9]
 *  Strings that include only numbers will be parsed as IDs and not as Slugs

## Орнотуу

 1. Upload the `w3s-api-extension` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. OPTIONAL: Rewrite rules are flushed automatically on plugin activation. If you 
    want, you can also flush them manually.

## Сын-пикирлер

There are no reviews for this plugin.

## Contributors & Developers

“W3S API Extension for Woocommerce” is open source software. The following people
have contributed to this plugin.

Мүчөлөрү

 *   [ w3specialists.com ](https://profiles.wordpress.org/w3specialists/)

[Translate “W3S API Extension for Woocommerce” into your language.](https://translate.wordpress.org/projects/wp-plugins/w3s-api-extension)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/w3s-api-extension/),
check out the [SVN repository](https://plugins.svn.wordpress.org/w3s-api-extension/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/w3s-api-extension/)
by [RSS](https://plugins.trac.wordpress.org/log/w3s-api-extension/?limit=100&mode=stop_on_copy&format=rss).

## Өзгөртүүлөр

#### 1.0.1

 * Fixed: readme file modifications

#### 1.0.0

 * Initial release

## Мета

 *  Нуска **1.0.1**
 *  Акыркы жаңыртуу **12 ай мурун**
 *  Активдүү орнотуулар **Fewer than 10**
 *  WordPress нускасы ** 6.0 же андан жогору **
 *  Tested up to **6.8.5**
 *  PHP нускасы ** 7.4 же андан жогору **
 *  Тил
 * [English (US)](https://wordpress.org/plugins/w3s-api-extension/)
 * Тег:
 * [api](https://ky.wordpress.org/plugins/tags/api/)[categories](https://ky.wordpress.org/plugins/tags/categories/)
   [extension](https://ky.wordpress.org/plugins/tags/extension/)[woocommerce](https://ky.wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://ky.wordpress.org/plugins/w3s-api-extension/advanced/)

## Рейтинг

Азырынча эч кандай сын-пикир жок.

[Your review](https://wordpress.org/support/plugin/w3s-api-extension/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/w3s-api-extension/reviews/)

## Мүчөлөрү

 *   [ w3specialists.com ](https://profiles.wordpress.org/w3specialists/)

## Колдоо

Комментарийлер барбы? Жардам керекпи?

 [Колдоо форумун көрүү](https://wordpress.org/support/plugin/w3s-api-extension/)