This repository contains a WordPress demo plugin for the composer package Easy Settings for WordPress. It is intended to show the possibilities of the plugin. It is not intended to be used actively in a productive system. You are welcome to use the programming as a template for your own use of Easy settings for WordPress.
- Download the actual release ZIP (not the source ZIP).
- Install it in your WordPress and activate it.
- Navigate to Settings > Demo Settings to view the demo. You can test it as you wish.
- Checkout the repository in your development environment in the plugin directory or download the actual source ZIP.
- Run
composer installto get the sources. - Go to the backend of your development environment and activate the plugin.
- Navigate to Settings > Demo Settings to view the demo.
- increase the version number in build/build.properties.
- execute the following command in build/:
ant build - after that you will find a zip file in the release directory, which could be used in WordPress to install it.
- Create a new tag with the new version number.
- The release zip will be created by GitHub action.
- Checkout the repository in your development environment in the plugin directory or download the actual source ZIP.
- Checkout the repository https://github.com/threadi/easy-settings-for-wordpress in your hostings main directory (where wp-admin and wp-config.php are located).
- Run:
chmod 755 composer.sh - Run
./composer.sh - Go to the backend of your development environment and activate the plugin.
- You are now able to develop on Easy Settings for WordPress and test the changes with the demo plugin.
I recommend to use PoEdit to translate texts for this plugin.
Run in the main directory:
wp i18n make-pot . languages/easy-settings-for-wordpress-demo.pot
- Open .po-file of the language in PoEdit.
- Go to "Translate" > "Update from POT-file".
- After this the new entries are added to the language-file.
- Open .po-file of the language in PoEdit.
- Go to "File" > "Save".
- Upload the generated .mo-file and the .po-file to the plugin-folder languages/
wp i18n make-php languages
composer install
vendor/bin/phpcs .
vendor/bin/phpcbf .
Hint: this check runs against the VIP-GO-platform which is not our target for this plugin. Many warnings can be ignored.
vendor/bin/phpcs --extensions=php --ignore=*/vendor/* --standard=WordPress-VIP-Go .
vendor/bin/phpcs -p crypt-for-wordpress-demo.php --standard=PHPCompatibilityWP
vendor/bin/phpstan analyse