array( * 'lambda' => array( * 'type' => 'error' | 'warning', * 'message' => 'Avoid direct calls to the database.', * 'classes' => array( 'PDO', '\Namespace\Classname' ), * ) * ) * * @return array */ public function getGroups() { return array( 'mysql' => array( 'type' => 'error', 'message' => 'Accessing the database directly should be avoided. Please use the $wpdb object and associated functions instead. Found: %s.', 'classes' => array( 'mysqli', 'PDO', 'PDOStatement', ), ), ); } }