Support » Plugin: LifterLMS » Lesson edit history as in plain wordpress post

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Thomas Patrick Levy

    (@thomasplevy)

    @przembar,

    We don’t have revisions enabled on our custom post types. Mainly I guess because it’s something that I’ve never seen requested before so it’s literally never occurred to me to add…

    I’ll have to take a closer look at whether or not it makes sense to add as a core feature (there’s a lot of metadata that wouldn’t be saved by simply enabling revisions) but you can turn them on with a quick filtering:

    https://gist.github.com/thomasplevy/9aa39925892e9d76b49c5b8cffcccde9

    You can add filters via a functions.php file or a custom plugin: https://lifterlms.com/docs/how-do-i-add-custom-code-to-lifterlms-or-lifterlms-launchpad

    Hope that helps,

    WOW Thanks – that was really fast answer and super easy thing to do – following your explanation and code.
    For reference: I need to point out that I need to click update in lesson edit view to enable revision history and then last change is available with all revision options.
    One more question:
    Does lessons are revisioned even if I cannot see that by default?

    • This reply was modified 2 years, 4 months ago by przembar.
    Plugin Author Thomas Patrick Levy

    (@thomasplevy)

    @przembar,

    For reference: I need to point out that I need to click update in lesson edit view to enable revision history and then last change is available with all revision options.

    Gotcha, thanks! I’ll try to remember that if anyone asks again in the future.

    Does lessons are revisioned even if I cannot see that by default?

    Once you enable revisions (via the code) revisions will be saved. They are only displayed if you have the revision metabox displayed via the screen options. If you hide them they are still saved you just wont see the metabox!

    Just wanted to thank you both for asking about this, and for posting a great solution.

    Fwiw, I’d vote for adding revisions to core by default. I spent a little while trying to figure out why revisions weren’t enabled on my server until I realized they were, just not for llms lessons.

    Thanks again for the help!

    @justinwi I think that @thomasplevy need to add this to https://trello.com/b/egC72ZZS/lifterlms-feature-requests-public-voting so we can vote 🙂

    @thomasplevy can you add gist for having history for course description too? Or just variable name if the code is same as for lessons

    BTW @thomasplevy revisions for lessons works for me very well and helped a lot in course development and collaboration

    Plugin Author Thomas Patrick Levy

    (@thomasplevy)

    @przembar,

    You could submit this as a feature request if you insist but, to be very honest, this is a thing I know I’ll build and when I know I’m going to build something I usually don’t bother adding feature requests.

    Feature requests may be submitted here: https://lifterlms.com/contact/

    can you add gist for having history for course description too? Or just variable name if the code is same as for lessons

    Switch lifterlms_register_post_type_lesson to lifterlms_register_post_type_course

    revisions for lessons works for me very well and helped a lot in course development and collaboration

    Good to know. Thanks for the feedback!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Lesson edit history as in plain wordpress post’ is closed to new replies.