New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prereq and dependency checks on post trash #263

Open
thomasplevy opened this Issue Dec 1, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@thomasplevy
Member

thomasplevy commented Dec 1, 2016

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

  • remove prerequisites from any other courses
  • remove from membership auto-enrollment
  • cancel enrollments?

lesson

  • remove prerequisites from any other lessons
  • warnings on builder when lessons deleted (empty node on syllabus)

quiz

  • remove from any lessons

questions

  • remove from any quizzes

track

  • remove prerequisite from any courses

membership

  • remove restriction settings from any post which supports membership restrictions
  • remove from members-only access plans
  • check and remove from site wide restriction setting
  • cancel enrollments?

user

  • postmeta cleanup
  • order anonymization

orders

  • related transactions

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

@thomasplevy

This comment has been minimized.

Member

thomasplevy commented Oct 3, 2018

Transactions should be deleted when an order is deleted

thomasplevy added a commit that referenced this issue Oct 3, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment