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/godaddy-wordpress/go-plugin/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Go Plugin: Layouts for the CoBlocks Layout Selector
Development
- Clone the GitHub repository:
git@github.com:godaddy-wordpress/go-plugin.gitinto your WordPress installationswp-content/pluginsdirectory. The folder name should bego-plugin. - Browse to the folder in the command line.
- Run the
composer installcommand to install the plugin's development dependencies.
Development Commands
Linting and auto-formatting:
Run composer lint to run code styling checks and composer format for the auto-formatter to fix what it can.
Generating the .pot file:
Run composer makepot to generate a new translation langauges/go-plugin.pot file.
Build a release zip file
Run composer build-release to generate a production ready .zip file should you need to.
Releasing a new version
This repo is utilizing GitHub Actions and the 10up/action-wordpress-plugin-deploy action to push new deployments to the plugin repo. Simply tagging a new release will trigger the workflow and deploy a new version.