• I am BRAND new to creating plugins. I have successfully created a plugin that works but I am concerned with the php code as it has a username and password for the Database in it. Any buddy with a limited amount of knowledge would know more information then I would like to share about my DB.
    The plugin has simple select statement in it…

    Is there a tutorial that explains what I can do to prevent my DB connection from being shown to the public or whoever might use my plugin?

    Thanks,

    Jeff

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m not a plugin developer and don’t have a video for this, but wouldn’t it be better to get that information from the wp-config.php using something like an include statement……

    Thread Starter webdad3

    (@webdad3)

    That is part of what I was looking for… I guess the other part is that the DB that I’m using is not a WP DB. It is the DB of my website.

    Although technically it is on the same server and all that but if I used something like the wp-config.php how could I make the plugin available to the public?

    Again, I’m not a plugin developer, but it seems to me that you will need to incorporate the tables into the wp db if you want to make it available to the public, otherwise, what good would it be to others?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Database Connection’ is closed to new replies.