Releases: WPBP/WordPress-Plugin-Boilerplate-Powered
3.2.1
- Enhancement: On .env file some parameters are better with apostrophes
- Enhancement: Settings now support better the new improvements to WordPress Visual changes of last releases
- Enhancement: New PHPStan exceptions added
- Fix: ImpExp class wasn't possible to change the file name exported by generator
- Fix: Bubble notification is now removed by the generator
Check major version releases for the major changes https://github.com/WPBP/WordPress-Plugin-Boilerplate-Powered/releases/tag/3.2.0
3.2.0
PSR-4 support
This migration forced the project to change all the file naming rules to follow the PSR-4 standard and also a custom way to initialize the classes.
In previous version was required to change manually the https://github.com/WPBP/WordPress-Plugin-Boilerplate-Powered/blob/master/plugin-name/engine/Initialize.php to define the class to load by case (admin/frontend/cli/etc), instead now use the composer autoload to load them if the autoload was optimized (composer dumpautoload -o
) otherwise does a scan of the directories to autoload them.
Sadly PHP compared to other languages doesn't scan the folders on his own but require a hand to achieve it.
This system is easy to expand as because auto scan also subdirectories so based on the needs you can create all the folders as namespace that you need.
Why not a src
folder?
Honestly as WP plugin based on our needs and feedback there wasn't this need because the basic folders are already defined, anyway as this is a boilerplate it is possible to change and altering as you wish (or start a discussion to implement it).
Wiki
We are keep improving the wiki https://wpbp.github.io/wiki.html with new stuff but we are opened to any new idea or suggestion -> https://github.com/WPBP/wpbp.github.io
Generator
There will be as usual a new version of the generator (https://github.com/WPBP/generator) aligned with the new version.
Freemius-suite
This set of Bash scripts integrates in his workflow the support for this boilerplate to generate and upload the various plugin version -> https://github.com/CodeAtCode/freemius-suite
Changelog
- Enhancement: Added micropackage/requirements
- Enhancement: Added yahnis-elsts/plugin-update-checker
- Enhancement: Improved code style with WPCS
- Enhancement: Updated example pot files with new folder to exclude
- Enhancement: PSR-4 support with file and class renaming
- Enhancement: PHPStan support improved
- Enhancement: Code optimized with PHPStan help
- Enhancement: New
Initialize
class to avoid static class list - Removed: mte90/wp-contextual-help
- Removed: CoffeeScript support
- Replace:
wordpress-admin-notices
andWP-Dismissable-Notice-Handler
withwpdesk/wp-notice