prefix . 'amelia_' . static::TABLE; } /** * Create new table in the database */ public static function init() { require_once ABSPATH . 'wp-admin/includes/upgrade.php'; dbDelta(static::buildTable()); global $wpdb; foreach (static::alterTable() as $command) { $wpdb->query($command); } } /** * @return boolean */ public static function isValidTablePrefix() { global $wpdb; return strlen($wpdb->prefix) <= 16; } /** * @return array */ public static function alterTable() { return []; } }