How can I call the wpdb inside a plugin function defined in a class like this,
<?php
/*
* Plugin Name: Test
* Plugin URI: http://www.test.com/
* Description: Test plugin for wordpress.
* Version: 1.0.0
* Author: Test
* Author URI: http://test.me/
*/
class Test {
/*
|------------------------------------
| Constructor
|------------------------------------
*/
public function __construct() {
}
public function abc() {
var_dump($wpdb);
}
}