Support » Plugins » Hacks » Check if WordPress is installed

  • Hi, I have some questions.
    1. I have my own web site running WP (in subdirectory), alongside with my own website. I am trying to find a function (not wp functions), which can check if any WordPress installations exist.
    I need this function to determine the login page (my own login or wp-login).

    2. I need to get the user password from WP-DB, to copy it to my web sites own database or need to crypt the password like wp does, to make my own users table and wp_users table synchronized.

    Is there any way to these? And how can i do them. Any help appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz


    I don’t understand question 1. If it’s your site and you have WP installed, isn’t it safe to assume WP is installed? If the request includes the WP folder then serve the WP login, otherwise serve the other login.

    You can hook into all the WP user functions that change any important user data and cause your other user data to be altered at the same time to ensure synch in one direction. You would need to do something similar for your other user data, but I wouldn’t know anything about that side of things.

    Maybe another approach is to cause your other site to recognize the WP session cookie and let WP manage all logins.

    Yes, the site is mine. But I want to use that files for more than one website, because of that, i can not know the WP installation folder name. This is the problem.
    And because of that, i need to check for users in both tables. The website owner may want the login from custom login form. So, i need to handle the login and check if wp is installed or not, to decide which login will be used.
    Temporarily, I created a db record for wp installation folder, but trying to do this automatically.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Check if WordPress is installed’ is closed to new replies.