How to use wp database in custom plugin
-
Hi, Sir I want to know how to connect wordpress database to my require place
Like I want to connect Same WP DataBase
With mysite.com/db.php
I require
private $servername = “localhost”;
private $username = “xxx”;
private $password = “xxx”;
private $dbname=”xxx”;These Things In A plugin I ready the plugin problem is I not want to go and manually set this and I am not a pro level developer Can you Make A Code Which I will replace with above code that get these things no need to set in files every time .
- This topic was modified 5 years, 2 months ago by .
- This topic was modified 5 years, 2 months ago by .
The page I need help with: [log in to see the link]
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
The topic ‘How to use wp database in custom plugin’ is closed to new replies.