Linux 软件免费装

W3S API Extension for Woocommerce

开发者 w3specialists
更新时间 2026年12月3日 23:40
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv3
版权网址: 版权信息

标签

categories woocommerce bookings extension api

下载

1.0.1 1.1.0 1.2.0 1.0.0 1.3.0

详情介绍:

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 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” — or non-Latin slugs such as “ανδρικά” — 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. Plays Well With WooCommerce Changes are saved through the WooCommerce product API, so product caches are refreshed, woocommerce_update_product runs, product.updated webhooks fire, and the store’s default category is applied if a product is left without one. Built-In Validation & Security Sanitization of all inputs (IDs and slugs) to guard against bad data; the batch payload is validated against a schema. Permission checks mirror WooCommerce core: only users allowed to edit the product (Shop Manager, Admin) can modify its categories. Clear, standardized error codes (w3s_api_extension_invalid_product and w3s_api_extension_invalid_product_category) for consistent API responses. Unknown category IDs and slugs both return 404. W3S API Extension for WooCommerce installs alongside the core WooCommerce REST API, requires no additional configuration, and works out of the box. WooCommerce Bookings: prices by date and forced dates (optional) The Bookings endpoints need the commercial WooCommerce Bookings plugin (tested with versions 3.13 and 3.16). They are active only while WooCommerce Bookings is active; without it they are not registered, nothing is scheduled and the plugin works exactly as before.

安装:

  1. Upload the w3s-api-extension folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress. WooCommerce must be installed and active.
  3. No further configuration is required; the endpoints are available immediately.

升级注意事项:

1.3.0 Price periods can carry their own display cost. Requests that do not send one behave as before. 1.2.0 Restores a file that was missing from the 1.1.0 package (fatal error when the plugin loaded) and adds optional endpoints for WooCommerce Bookings.

更新日志:

1.3.0 1.2.0 1.1.0 1.0.1 1.0.0