gocodebox / lifterlms

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

Create required pages on activation #2639

Closed brianhogg closed 2 months ago

brianhogg commented 5 months ago

NOTE: Verify we also want to create the Course and Membership catalog pages, as this may stop the taxonomy page from working if that's what the user setup

Description

Create the four required pages on activation or update, if they don't already exist.

Fixes #2638

How has this been tested?

Manually

Checklist:

brianhogg commented 4 months ago

Potential complication is the checkbox for streamlined approach with PMPro would never display. Could see if PMPro can assume they want the streamlined approach on first install?

We could not try to create or modify the course or membership pages of create_pages has happened already.

ideadude commented 4 months ago

FYI here is the code PMPro uses to "streamline" the setup. https://github.com/strangerstudios/paid-memberships-pro/blob/dev/includes/compatibility/lifterlms.php#L397-L435

ideadude commented 2 months ago

This requires a larger "pitch" before we alter the wizard in this way.