WP Sane Setup
Run some common changes to your fresh WordPress install
by Jon Sherrard · github.com/jonsherrard/wp-sane-setup · website
★ 7stars
1.1kcomposer installs
3forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/jonsherrard/wp-sane-setup/archive/refs/heads/master.zipAlso on Packagist as jonsherrard/wp-sane-setup:
composer require jonsherrard/wp-sane-setupFrom the readme
WP 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
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();.