Update product properties field
This commit is contained in:
@@ -16,10 +16,10 @@
|
|||||||
"class": "",
|
"class": "",
|
||||||
"id": ""
|
"id": ""
|
||||||
},
|
},
|
||||||
"taxonomy": "category",
|
"taxonomy": "supplier",
|
||||||
"field_type": "select",
|
"field_type": "select",
|
||||||
"allow_null": 0,
|
"allow_null": 0,
|
||||||
"add_term": 1,
|
"add_term": 0,
|
||||||
"save_terms": 1,
|
"save_terms": 1,
|
||||||
"load_terms": 1,
|
"load_terms": 1,
|
||||||
"return_format": "id",
|
"return_format": "id",
|
||||||
@@ -63,7 +63,7 @@
|
|||||||
"taxonomy": "product_cat",
|
"taxonomy": "product_cat",
|
||||||
"field_type": "select",
|
"field_type": "select",
|
||||||
"allow_null": 0,
|
"allow_null": 0,
|
||||||
"add_term": 1,
|
"add_term": 0,
|
||||||
"save_terms": 1,
|
"save_terms": 1,
|
||||||
"load_terms": 1,
|
"load_terms": 1,
|
||||||
"return_format": "id",
|
"return_format": "id",
|
||||||
@@ -102,7 +102,7 @@
|
|||||||
]
|
]
|
||||||
],
|
],
|
||||||
"menu_order": 0,
|
"menu_order": 0,
|
||||||
"position": "side",
|
"position": "acf_after_title",
|
||||||
"style": "default",
|
"style": "default",
|
||||||
"label_placement": "top",
|
"label_placement": "top",
|
||||||
"instruction_placement": "label",
|
"instruction_placement": "label",
|
||||||
|
|||||||
@@ -27,6 +27,24 @@ function wiaas_db_update_add_reference_ui_field() {
|
|||||||
_wiaas_import_field_group($ui_json);
|
_wiaas_import_field_group($ui_json);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function wiaas_db_update_add_general_ui_fields() {
|
||||||
|
|
||||||
|
$ui_json = file_get_contents( dirname( __FILE__ ) . '/data/wiaas-ui-field-general.json' );
|
||||||
|
|
||||||
|
$ui_json = json_decode( $ui_json, true );
|
||||||
|
|
||||||
|
_wiaas_import_field_group($ui_json);
|
||||||
|
}
|
||||||
|
|
||||||
|
function wiaas_db_update_add_product_properties_ui_fields() {
|
||||||
|
|
||||||
|
$ui_json = file_get_contents( dirname( __FILE__ ) . '/data/wiaas-ui-field-product-properties.json' );
|
||||||
|
|
||||||
|
$ui_json = json_decode( $ui_json, true );
|
||||||
|
|
||||||
|
_wiaas_import_field_group($ui_json);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// private helper function
|
// private helper function
|
||||||
|
|
||||||
@@ -109,21 +127,3 @@ function _wiaas_import_field_group($json) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function wiaas_db_update_add_general_ui_fields() {
|
|
||||||
|
|
||||||
$ui_json = file_get_contents( dirname( __FILE__ ) . '/data/wiaas-ui-field-general.json' );
|
|
||||||
|
|
||||||
$ui_json = json_decode( $ui_json, true );
|
|
||||||
|
|
||||||
acf_import_field_group($ui_json[0]);
|
|
||||||
}
|
|
||||||
|
|
||||||
function wiaas_db_update_add_product_properties_ui_fields() {
|
|
||||||
|
|
||||||
$ui_json = file_get_contents( dirname( __FILE__ ) . '/data/wiaas-ui-field-product-properties.json' );
|
|
||||||
|
|
||||||
$ui_json = json_decode( $ui_json, true );
|
|
||||||
|
|
||||||
acf_import_field_group($ui_json[0]);
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user