gocodebox / lifterlms

LifterLMS, a WordPress LMS Solution: Easily create, sell, and protect engaging online courses.
https://lifterlms.com
GNU General Public License v3.0
181 stars 135 forks source link

prereq and dependency checks on post trash #263

Open thomasplevy opened 7 years ago

thomasplevy commented 7 years ago

use action wp_trash_post (https://core.trac.wordpress.org/browser/tags/4.5.3/src/wp-includes/post.php#L2656) to perform lookups before trashing

Also check into untrash actions

course

sections

lesson

quiz

questions

track

membership

~user~

User cleanup moved to #940

orders

WIP: https://github.com/gocodebox/lifterlms/blob/master/includes/class.llms.post.relationships.php

thomasplevy commented 6 years ago

Transactions should be deleted when an order is deleted

eri-trabiccolo commented 3 years ago

@thomasplevy we should remove access plans when "parent" course/membership is permanently deleted, as we don't have the concept of an "orphan" access plan. Should we add this to the list above or should we open a new issue?

thomasplevy commented 3 years ago

@eri-trabiccolo added above