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://skr.wordpress.org/plugins/w3s-api-extension/#description)
 * [ریویو](https://skr.wordpress.org/plugins/w3s-api-extension/#reviews)
 *  [انسٹال کرݨ](https://skr.wordpress.org/plugins/w3s-api-extension/#installation)
 * [ڈیویلپمنٹ ](https://skr.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/)

[ “W3S API Extension for Woocommerce&#8221 دا آپݨی زبان وچ ترجمہ کرو۔](https://translate.wordpress.org/projects/wp-plugins/w3s-api-extension)

### ڈیویلپمنٹ وچ دلچسپی ہے؟

[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

## میٹا

 *  Version **1.0.1**
 *  Last updated **11 مہینے پہلے**
 *  Active installations **١٠ کنوں گھٹ**
 *  WordPress version ** 6.0 یا ودھ **
 *  Tested up to **6.8.5**
 *  PHP version ** 7.4 یا ودھ **
 *  Language
 * [English (US)](https://wordpress.org/plugins/w3s-api-extension/)
 * Tags
 * [api](https://skr.wordpress.org/plugins/tags/api/)[categories](https://skr.wordpress.org/plugins/tags/categories/)
   [extension](https://skr.wordpress.org/plugins/tags/extension/)[woocommerce](https://skr.wordpress.org/plugins/tags/woocommerce/)
 *  [اعلیٰ منظر](https://skr.wordpress.org/plugins/w3s-api-extension/advanced/)

## ریٹنگ

No reviews have been submitted yet.

[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/)

## معاونت

Got something to say? Need help?

 [معاونت فورم ݙیکھو](https://wordpress.org/support/plugin/w3s-api-extension/)