- Clone this repository into your
wp-content/pluginsdirectory. - Run
rm -rf .gitto remove the Git repo of the starter plugin. - Run
npm installto install the dependencies. - Run
node bin/setup.mjsand follow the prompts to set up the plugin. - Activate the plugin in the WordPress admin.
To make it a repo:
git initgit add .git commit -m "Initial commit"gh repo create(if you have the GitHub CLI installed)
To delete the setup script:
rm bin/setup.mjs && npm uninstall --save-dev @inquirer/prompts
wp core downloadwp core config --dbname=example --dbuser=root --dbpass=(replace example with your project name)wp db createwp core install --url=example.test --title=Example --admin_user=admin --admin_password=password --admin_email=mail@example.com(replace example with your project name)wp site empty --yeswp search-replace http httpsherd securewp rewrite structure '/%postname%'(optional)wp config set WP_DEBUG true --rawwp config set WP_DEBUG_LOG true --rawwp config set SCRIPT_DEBUG true --rawwp config set WP_ENVIRONMENT_TYPE local- Follow the Quick Start instructions above.
- Run
npm run startto start the development server.
- Run
npm run buildto build the plugin.