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

[Data Liberation] New "wp data-liberation" WP-CLI script #2104

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

zaerl
Copy link
Collaborator

@zaerl zaerl commented Dec 19, 2024

Motivation for the change, related issues

This code is cherry-picked from #2030. This is done to publish those parts during this discussion: #2090.

Implementation details

This PR also introduces the new CLI script and moves the logger there. I removed the old version and moved to a new standard class. The Logger class was removed because it is no longer needed now that the WP_Entity_Importer class exposes all the necessary information.

Testing Instructions (or ideally a Blueprint)

wp data-liberation import your-file.xml

or:

cd packages/playground/data-liberation/bin/import
bash import-wxr.sh a-folder-with-xmls

Run wp data-liberation import --help for all the options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs review
Development

Successfully merging this pull request may close these issues.

1 participant