• I need help
    I want that my register page it’s a plugin(ultimate User) connect with my external database from my game with a hash mysql 5
    How can I do this?
    Like put second database on my function.Php
    And then
    I Want that the register page communicate with this external database of my server

    • This topic was modified 5 years, 8 months ago by sakura00.
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    To connect to an external DB, create a connection by instantiating a new wpdb class object. You can use this object’s methods to query your DB. The global $wpdb object is of this class and is how WP queries its DB.

    To invoke a custom registration scheme, I would look at redirecting the usual registration POST request with user data to a custom registration handler. One way to handle a custom registration request is to redirect through /wp-admin/admin-post.php with an “action” parameter. Your custom code then hooks into an action tag composed in part from the passed “action” parameter.

Viewing 1 replies (of 1 total)
  • The topic ‘External database’ is closed to new replies.