File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -36,3 +36,24 @@ and you can set any meta fields you like.
36
36
37
37
I have not tested this with anything other than strings, so be wary that the behaviour storing other data structures
38
38
in metafields are * undefined* at present.
39
+
40
+ ## Returning Product Meta
41
+
42
+ When retrieving a product, the custom product meta fields will be put into the "meta" field as an array when
43
+ retrieving a product through the API. This only works for capability 'manage_woocommerce' to help prevent
44
+ leakage of secure data.
45
+
46
+ The field will look something like this:
47
+
48
+ "meta": [
49
+
50
+ {
51
+ "test custom field": "Hi There!",
52
+ "pv_commission_rate": "",
53
+ "ISBN": "1234567890-1"
54
+ }
55
+ ]
56
+
57
+ Both visibla and hidden ("_ " prefixed) fields will be included in the list. All raw WooCommerce fields that
58
+ are already present in some form in the product data will be filtered out, leaving only fields added by
59
+ third-party plugins or manually by the shop manager.
You can’t perform that action at this time.
0 commit comments