[Solved]: Add store to custom wordpress plugin?

The solution was simpler than expected. I just had to add the following to my store file.

// Check if store already exists
if (!select(STORE_NAME)) {
    register(store);
}

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)