Closed mattheu closed 11 months ago
Hey @mikelittle - digging up an old pull request here! But the need for this functionality came up again.
We don't have any precedence in the Authorship plugin for writing tests against CLI command functionaltiy... so I did something very basic by calling the function directly and verifying the data changed as expected.
To the cases you suggest...
post
Ha me neither. I didn’t really try TBH, I just relied on the CI to run them!
All the tests passed. (though they were marked risky because of the output).
The recently added wp authors migration command uses query_posts, but does not provide a way to query multiple post types.
New param defaults to just posts, but supports passing another post type, or comma separated list of post types.
e.g.