wp_foxlms_lessons

Static

Stores foxlms lessons data created by this plugin.

Column Definitions

ColumnTypeNullable
🔑idINT(16) UNSIGNEDNO
post_idINT(16) UNSIGNEDYES
course_idINT(16) UNSIGNEDYES
course_post_idINT(16) UNSIGNEDYES
author_idINT(11) UNSIGNEDNO
section_idINT(11) UNSIGNEDNO
category_idsTEXTNO
questionTEXTNO
question_descriptionTEXTNO
lessonTEXTNO
lesson_descriptionTEXTNO
typeVARCHAR(256)NO
statusVARCHAR(256)NO
trash_statusVARCHAR(256)NO
date_createdDATETIMENO
date_modifiedDATETIMENO
user_variantTEXTYES
user_explanationTEXTYES
imageTEXTNO
orderingINT(11)NO
optionsTEXTNO

CREATE TABLE Statement

CREATE TABLE `wp_foxlms_lessons` ( `id` INT(16) UNSIGNED NOT NULL AUTO_INCREMENT, `post_id` INT(16) UNSIGNED DEFAULT NULL, `course_id` INT(16) UNSIGNED DEFAULT NULL, `course_post_id` INT(16) UNSIGNED DEFAULT NULL, `author_id` INT(11) UNSIGNED NOT NULL DEFAULT '0', `section_id` INT(11) UNSIGNED NOT NULL DEFAULT '0', `category_ids` TEXT NOT NULL, `question` TEXT NOT NULL, `question_description` TEXT NOT NULL, `lesson` TEXT NOT NULL, `lesson_description` TEXT NOT NULL, `type` VARCHAR(256) NOT NULL DEFAULT '', `status` VARCHAR(256) NOT NULL DEFAULT 'published', `trash_status` VARCHAR(256) NOT NULL DEFAULT '', `date_created` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', `date_modified` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', `user_variant` TEXT NULL, `user_explanation` TEXT NULL, `image` TEXT NOT NULL, `ordering` INT(11) NOT NULL DEFAULT '1', `options` TEXT NOT NULL, PRIMARY KEY (`id`) ) $charset_collate;"; $results = $wpdb->get_results(// phpcs:ignore $wpdb->prepare( "SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE table_schema = %s AND table_name = 'wp_foxlms_lessons' ", DB_NAME ) );

Safe to delete?

If you have uninstalled Fox LMS – eLearning & Course Builder, this table is generally safe to remove. However, always back up your database first.

Note: Some plugins share tables or are dependencies of other plugins. Verify nothing else depends on this table before dropping it.

How to remove this table

DROP TABLE IF EXISTS `wp_foxlms_lessons`;

Run this query using phpMyAdmin, Adminer, or your MySQL client. Back up first.

Other tables from Fox LMS – eLearning & Course Builder