Title: API Improver for WooCommerce
Author: Mário Valney
Published: <strong>Decembro 23, 2020</strong>
Last modified: Januaro 7, 2021

---

Priserĉi kromprogramojn

![](https://ps.w.org/api-improver-for-woocommerce/assets/banner-772x250.png?rev=
2452010)

Tiu ĉi kromprogramo **ne estis testita en la 3 lastaj gravaj eldonoj de WordPress**.
Eble ĝi ne plu estas prizorgata kaj ĝi eble havus kongruajn problemojn en novaj 
versioj de WordPress.

![](https://ps.w.org/api-improver-for-woocommerce/assets/icon-256x256.png?rev=2452010)

# API Improver for WooCommerce

 De [Mário Valney](https://profiles.wordpress.org/mariovalney/)

[Elŝuti](https://downloads.wordpress.org/plugin/api-improver-for-woocommerce.zip)

 * [Detaloj](https://eo.wordpress.org/plugins/api-improver-for-woocommerce/#description)
 * [Pritaksoj](https://eo.wordpress.org/plugins/api-improver-for-woocommerce/#reviews)
 *  [Instalo](https://eo.wordpress.org/plugins/api-improver-for-woocommerce/#installation)
 * [Programado](https://eo.wordpress.org/plugins/api-improver-for-woocommerce/#developers)

 [Helpo](https://wordpress.org/support/plugin/api-improver-for-woocommerce/)

## Priskribo

Improve your WooCommerce API REST without config.

[WooCommerce](https://wordpress.org/plugins/woocommerce/) is a awesome plugin used
by 5+ million WordPress websites to create e-commerce.

It’s awesome and we love it but sometimes we need more from API REST.

### Endpoints

We support V3.

#### /products

 * Will search for a category/tag by “name” and “slug” (in this order) if “id” is
   not provided (or empty).
 * Will search for attribute ID if it’s not provided (or empty). Check [wc_attribute_taxonomy_id_by_name](https://woocommerce.github.io/code-reference/files/woocommerce-includes-wc-attribute-functions.html#function_wc_attribute_taxonomy_id_by_name)
   for more details.

In both cases, **we will not** create a new product attribute, category or tag. 
You can use the “aifw_api_v1_products_search_for_terms” filter to create it and 
return the “term_id”.
 WooCommerce will keep the attribute for product only if a
taxonomy was not found.

#### How to Use

Easy and quick!

Just activate “API Improver for WooCommerce” and it’s done. No configurations.

#### Translations

You can [translate API Improver for WooCommerce](https://translate.wordpress.org/projects/wp-plugins/api-improver-for-woocommerce)
to your language.

#### Review

We would be grateful for a [review here](https://wordpress.org/support/plugin/api-improver-for-woocommerce/reviews/).

#### Support

 * WooCommerce – 4.8

(API Version 3 supports 3.5.x or later, but we did not test it)

## Ekrankopioj

 * [[
 * Request to create a Product with a category without ID.
 * [[
 * Example to update a Product with both categories with and without ID.

## Instalo

First

 * Install [WooCommerce](https://wordpress.org/plugins/woocommerce/) and activate
   it.

Next

 * Install “API Improver for WooCommerce” by plugins dashboard.

Or

 * Upload the entire `api-improver-for-woocommerce` folder to the `/wp-content/plugins/`
   directory.

Then

 * Activate the plugin through the ‘Plugins’ menu in WordPress.

## OD

### Does it works for another e-commerce plugin?

Nope. The intention here is to improve WooCommerce API REST.

### I want to add my customization to endpoints

For products, you can use the filter “aifw_api_v3_products_request_for_prepare_object_for_database”
to change the request.

### Is there a way to create categories or attributes?

We will not create new terms but you can use the “aifw_api_v3_products_term_not_found”.
[Example](https://gist.github.com/mariovalney/78090bd7eaa064d6b27e44804fd34008).

### Can I help you?

Yes! Visit [GitHub repository](https://github.com/mariovalney/api-improver-for-woocommerce).

## Pritaksoj

There are no reviews for this plugin.

## Kontribuantoj k. programistoj

“API Improver for WooCommerce” estas liberkoda programo. La sekvaj homoj kontribuis
al la kromprogramo.

Kontribuantoj

 *   [ Mﾃ｡rio Valney ](https://profiles.wordpress.org/mariovalney/)

“API Improver for WooCommerce” has been translated into 1 locale. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/api-improver-for-woocommerce/contributors)
for their contributions.

[Traduki “API Improver for WooCommerce” en vian lingvon.](https://translate.wordpress.org/projects/wp-plugins/api-improver-for-woocommerce)

### Ĉu interesita en programado?

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

## Ŝanĝprotokolo

#### 1.1

 * Added the ID key if not provided to allow developers send a pretty payload.

#### 1.0

 * It’s alive!
 * Improved endpoint “/products” to accept category/tag by “name” and “slug” if “
   id” is not provided.
 * Improved endpoint “/products” to search for taxonomies by “name” for attributes
   if “id” is not provided.

## Metadatumoj

 *  Version **1.1.0**
 *  Last updated **antaŭ 5 jaroj**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 4.7 or higher **
 *  Tested up to **5.6.17**
 *  PHP version ** 7.0 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/api-improver-for-woocommerce/) kaj
   [Portuguese (Brazil)](https://br.wordpress.org/plugins/api-improver-for-woocommerce/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/api-improver-for-woocommerce)
 * Tags
 * [api](https://eo.wordpress.org/plugins/tags/api/)[mariovalney](https://eo.wordpress.org/plugins/tags/mariovalney/)
   [products](https://eo.wordpress.org/plugins/tags/products/)[rest](https://eo.wordpress.org/plugins/tags/rest/)
   [woocommerce](https://eo.wordpress.org/plugins/tags/woocommerce/)
 *  [Altnivela rigardo](https://eo.wordpress.org/plugins/api-improver-for-woocommerce/advanced/)

## Pritaksoj

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/api-improver-for-woocommerce/reviews/)

## Kontribuantoj

 *   [ Mﾃ｡rio Valney ](https://profiles.wordpress.org/mariovalney/)

## Helpo

Got something to say? Need help?

 [Vidi helpforumon](https://wordpress.org/support/plugin/api-improver-for-woocommerce/)

## Donaci

Ĉu vi volas subteni la pluevoluigon de tiu ĉi kromprogramo?

 [ Donaci al tiu ĉi kromprogramo ](https://github.com/mariovalney/api-improver-for-woocommerce)