llms_update_300_del_deprecated_options()

Delete deprecated options that are no longer used by LifterLMS after 3.0.0


Return Return

(void)


Top ↑

Source Source

File: includes/functions/updates/llms-functions-updates-300.php

function llms_update_300_del_deprecated_options() {

	/**
	 * Delete legacy options related to LifterLMS updating
	 * prior to 2.0 release. this is long overdue
	 */
	delete_option( 'lifterlms_is_activated' );
	delete_option( 'lifterlms_update_key' );
	delete_option( 'lifterlms_authkey' );
	delete_option( 'lifterlms_activation_key' );

	/**
	 * Legacy option no longer needed
	 */
	delete_option( 'lifterlms_student_role_created' );

	/**
	 * Delete course and membership display & related options
	 * these are now filters or can be handled with action hooks
	 * moving forward
	 */
	delete_option( 'lifterlms_button_purchase_membership_custom_text' );
	delete_option( 'lifterlms_course_display_outline_lesson_thumbnails' );
	delete_option( 'lifterlms_course_display_author' );
	delete_option( 'lifterlms_course_display_banner' );
	delete_option( 'lifterlms_course_display_difficulty' );
	delete_option( 'lifterlms_course_display_length' );
	delete_option( 'lifterlms_course_display_categories' );
	delete_option( 'lifterlms_course_display_tags' );
	delete_option( 'lifterlms_course_display_tracks' );
	delete_option( 'lifterlms_lesson_nav_display_excerpt' );
	delete_option( 'lifterlms_course_display_outline' );
	delete_option( 'lifterlms_course_display_outline_titles' );
	delete_option( 'lifterlms_course_display_outline_lesson_thumbnails' );
	delete_option( 'lifterlms_display_lesson_complete_placeholders' );
	delete_option( 'redirect_to_checkout' );

}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.