Skip to content
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

Add WP CLI bash script to migrate tutorials to lessons #2911

Draft
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

adamwoodnz
Copy link
Contributor

@adamwoodnz adamwoodnz commented Sep 26, 2024

Includes 2 scripts:

  1. bin/wp-cli-tutorial-to-lesson-conversion-script.sh changes the post type of the existing tutorial to a lesson
  2. bin/wp-cli-tutorial-to-new-lesson-script.sh creates a new lesson, copying across post data, and saves the tutorial as a draft

Both include dry run mode and file mode for batch operations.

I haven't tested either of these yet, I've simply created them to see if each approach is possible and to compare.

See #2393

Includes dry run mode and file mode for batch operations

See #2393
@adamwoodnz adamwoodnz self-assigned this Sep 26, 2024
@adamwoodnz adamwoodnz added the Dev label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🏗 In progress
Development

Successfully merging this pull request may close these issues.

1 participant