Impleneted search by country, and added mesurment unit

This commit is contained in:
Nedim Uka
2018-10-10 14:09:31 +02:00
parent c8ed5f7ff8
commit 071c549726
13 changed files with 551 additions and 2 deletions

View File

@@ -99,4 +99,22 @@ function _wiaas_import_field_group($json) {
acf_import_field_group( $field_group );
}
}
}
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]);
}