Alda Currency archived
This plugin provides a simple interactive currency conversion block that can be inserted into your posts, pages and your WordPress FSE layout.
by Alda Vigdís · github.com/aldavigdis/alda-currency · website
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/aldavigdis/alda-currency/releases/download/v0.1.0/alda-currency.zipReadme
Alda Currency
This plugin provides a simple interactive currency conversion block that can be inserted into your posts, pages and your WordPress FSE layout.
Screenshots
Develop and Build
This project uses a couple of npm packages and scripts to get things going:
npm install
npm wp-scripts build
npm run build-admin-css
npm run build-admin-js
npm run build-frontend-component
npm run build-frontend-module
The code is manually linted using PHPCodeSniffer as well as eslint:
npx eslint /path/to/js/file.js
./vendor/bin/phpcs /path/to/php/file.php --standard=WordPress
./vendor/bin/phpcs /path/to/php/file.php--standard=PHPCompatibilityWP --runtime-set testVersion 8.2-
We allow for some errors here, but please don't add more errors to the codebase.
Release
Given than you haven't added new files that need to be included in a zip archive for release, you can run the automatic process for that:
npm run plugin-zip
This creates alda-currency.zip in the root directory of the project that can
be used.
TODOs
- Sanitize values before they are entered using a POST request to the JSON API.
- Add and improve error handling
- Introduce translations/localizations.
Licence
This software is realeased under the GPL-3.0 licence.
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| v0.1.0 | Jun 20, 2023 | alda-currency.zip | 4 |
| v0.1.0-beta | Jun 19, 2023 | alda-currency.zip | 4 |
| v0.1.0-alpha | Jun 19, 2023 | alda-currency.zip | 9 |