WordPress.org

Support

Support » How-To and Troubleshooting » Where is the prefix store for admin?

Where is the prefix store for admin?

  • ppyczek
    Member

    @ppyczek

    Hi,

    I am trying to make the blog a two language website. I managed to workout a way. I have a script that saves info in cookies about what the choice is and the website itself works fine. What i did is I duplicated all the DB tables with a new prefix ‘pl_wp_’ and depending on which language version i click, the blog uses either tables with ‘wp_’ or ‘pl_wp_’ prefix.

    I added this line to wp-config.php

    if ($c_lang=='p') { $table_prefix  = 'pl_wp_'; }
    else { $table_prefix  = 'wp_';}

    and with my small script i have, it works fine. I know this is not the most professional way to do that but the scripts for twolanguage websites just did not meet our expectations. ok.. and…

    What does not work is the admin. Do you have any clue where i have to insert ifs to change the prefix for the administration dashboard? I seems that is might have separate config file. I founbd setup-config.php but changes i did there make no difference.

    I will be grateful for help 😉

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Where is the prefix store for admin?’ is closed to new replies.