[wp-hackers] How to use $wpdb in plugins

Leo Baiano ljunior2005 at gmail.com
Mon Jan 6 15:58:50 UTC 2014


What better way to use the global $ wpdb in building a plugin? I'm working
on a plugin and some methods need to access data in the database tables,
including creating, and I was in doubt about the best way, like, do not
want to quit repeating global $ wpdb in all methods of my class.

How do you do?

-- 
Amplexos,

Leo Baiano
Web Developer


More information about the wp-hackers mailing list