eighteen73 / wp-cli-tools

WP-CLI commands to assist our development workflow
1 stars 0 forks source link

Add sample content to websites #15

Closed edjeavons closed 11 months ago

edjeavons commented 11 months ago

Add a new command that adds sample content to the website which we'll use to verify CSS and get designer sign-off.

We could use something like:

wp eighteen73 sample-content

Perhaps with an arg to specify what we want to publish, giving room for future ideas. We'll begin with:

# A HTML kitchen sink
wp eighteen73 sample-content kitchen-sink

# A page with all default blocks that we know are commonly used
wp eighteen73 sample-content blocks

Content will be in the form of pages set to private mode. They'd have a pre-determined URL and if that URL already exists the CLI should ask if it's to be overwritten (allowing for later updates to be applied).

This should be run automatically during create-site operations.

edjeavons commented 11 months ago

This is available in main branch now.

I'll close the issue now but will hold off tagging a new version until we're happy with the content that's added to websites.