Hello,
All the data is saved in a single database table “wp_ymm”.
So you can create custom functions that will add/edit/delete the data directly in the database table.
For example, you can use this function to get all makes and models:
public function getYMMData(){
global $wpdb;
$select = "SELECT make, model, year_from, year_to FROM {$wpdb->base_prefix}ymm";
return $wpdb->get_results($select, ARRAY_A);
}
Stanislav
hello,
so I need to put this CSS in the linked shop?
I have done it, but did not work the global $wpdb;
gives an error.
Hello,
It is not a working code.
It is just and example of how to get the data from the wp_ymm database table.
This plugin does not have an API functions.
So to make a working API you should write a lot of other code.
Stanislav