Hi I’m trying to write my first WordPress plugin. I’m using classes to make it easier to maintain.
I’m wondering how I can use the WPDB class in my wordpress plugin.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
$wpdbis aglobalvariable, which is an instantiation of the class already set up to talk to theWordPressdatabase.you can use it in this manner –
For more info you can also check this link – Link To CODEX
If its your first i prefer to modify the existing one that i suggested few days back, check this link as it may help you showing plugin in frontend of website or in page