tableName); if($wpdb->get_var($query) != $this->tableName) { dbDelta(sprintf($this->createQuery, $this->tableName)); AmzFulfillment_Core::debug('Database table created: ' . $this->tableName); } } /** * clean * * Remove / cleanup database table */ public function clean() { global $wpdb; if($this->cleanOnDeactivate) { $wpdb->query(sprintf("DROP TABLE IF EXISTS `%s`", $this->tableName)); AmzFulfillment_Core::debug('Database table removed: ' . $this->tableName); } else { AmzFulfillment_Core::debug('Database table keeped: ' . $this->tableName); } } }