judgej / wc-api-custom-meta

WordPress/WooCommerce plugin to support custom meta fields through the product API
32 stars 12 forks source link

Define validation rules for custom fields #2

Closed judgej closed 7 years ago

judgej commented 9 years ago

Allow simple validation rules to be defined for each custom field. To start with, just forcing numeric, date and string would be good. Validation closures could come next.

A filter on each one would also be good so that any custom validation or mapping rules could be used.

judgej commented 7 years ago

Use the new v2 REST API (WC 3.x) instead of this plugin. It now does everything this plugin does out of the box. The README gives some examples of how you would manage the metadata fields.