wp-cli / export-command

Exports WordPress content to a WXR file.
MIT License
12 stars 27 forks source link

Add include_once parameter for before_posts data in multifile exports #91

Closed jmdodd closed 1 year ago

jmdodd commented 2 years ago

This is a potential solution for https://github.com/wp-cli/export-command/issues/76.

The default behavior is to include all before_posts sections. The --include_once parameter allows certain optional sections to be included only in the first file of a multifile export.

schlessera commented 2 years ago

Hi @jmdodd, This PR looks great already, thank you for that! To merge the code, we will need to add Behat test cases for it, though. Are you up for adding these needed test cases?

jmdodd commented 2 years ago

I'll learn how. :)

danielbachhuber commented 1 year ago

Proceeding with https://github.com/wp-cli/wp-cli/issues/5594 for this repository. I've captured this PR to https://gist.github.com/danielbachhuber/d474a1506fdc61d157184049890f2cbd in case this PR is auto-closed or broken in some way.