Title: API / Sync ymm
Last modified: April 22, 2020

---

# API / Sync ymm

 *  [promotoparts](https://wordpress.org/support/users/promotoparts/)
 * (@promotoparts)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/api-sync-ymm/)
 * hello,
    i want to make an api / sync with different shops , please help me with
   it. now i need to do it manual to the shops.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fapi-sync-ymm%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Pektsekye](https://wordpress.org/support/users/pektsekye/)
 * (@pektsekye)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/api-sync-ymm/#post-12712260)
 * 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
 *  Thread Starter [promotoparts](https://wordpress.org/support/users/promotoparts/)
 * (@promotoparts)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/api-sync-ymm/#post-12718674)
 * 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.
 *  Plugin Author [Pektsekye](https://wordpress.org/support/users/pektsekye/)
 * (@pektsekye)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/api-sync-ymm/#post-12719901)
 * 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

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘API / Sync ymm’ is closed to new replies.

 * ![](https://ps.w.org/ymm-search/assets/icon-256x256.png?rev=1750193)
 * [Year Make Model Search for WooCommerce](https://wordpress.org/plugins/ymm-search/)
 * [Support Threads](https://wordpress.org/support/plugin/ymm-search/)
 * [Active Topics](https://wordpress.org/support/plugin/ymm-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ymm-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ymm-search/reviews/)

## Tags

 * [ymm](https://wordpress.org/support/topic-tag/ymm/)

 * 3 replies
 * 2 participants
 * Last reply from: [Pektsekye](https://wordpress.org/support/users/pektsekye/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/api-sync-ymm/#post-12719901)
 * Status: not resolved