Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/shortlist-digital/croissant-sane-setup/archive/refs/heads/master.zipOn Packagist as shortlist-digital/croissant-sane-setup:
composer require shortlist-digital/croissant-sane-setupNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
WP Croissant Sane Setup
Make some sensible setup changes to a new WordPress installation.
NB: This plugin only makes changes to the database, nothing is hardcoded.
Changes WP Sane Setup will make to your fresh install:
- Delete the 'Hello World' post
- Delete the 'Sample' page
- Create a 'Home' page
- Set the front page to 'Home'
- Rename the 'Ucategorized' category to 'News'
- Set the start of the week to Monday
- Set default permalinks to /category/post-name
- Disable emojis
- Adds default 'List' post
- Changes default theme to agreable-app-theme
UI
Once the plugin is enabled, a WordPress admin notice will ask you to run sane setup:
Once the WP Sane Setup has run, the plugin is rundundant, and an admin notice will ask you to deactivate the plugin. After this you may want to delete WP Sane Setup from your plugins.
Contributing
Contributions for other 'sane defaults' are welcome. Send me a pull request!
It's pretty easy, just wrap the singular change you want to make in a function, then in function dosetup(), call $this-examplechange();.