The BEA Plugin Boilerplate serves as a foundation off of which to build your WordPress plugins.
For making this plugin easily usable, you can make the given replacements please enable the case sensitive search and then :
- Search for:
bea-plugin-boilerplate
and replace with:my-plugin
- Search for:
BEA\PB
and replace with:BEA\My_plugin
- Search for:
BEA_PB_
and replace with:MY_PLUGIN_
- Search for:
Plugin Boilerplate
and replace with:My plugin name
- Search for:
init_bea_pb_plugin
and replace with:init_my_plugin
- Search for:
bea-pb
and replace with:my-plugin
Then you have to rename the bea-plugin-boilerplate.php
to my-plugin.php
and edit the plugin header.
You need composer to autoload all your classes from the classes folder.
Use the beapi/composer-scaffold-plugin
package that add it automatically to the composer.json file.
You can add it yourself like this :
"autoload": {
"psr-4": {
"BEA\PB\\": "content/plugins/bea-plugin-boilerplate/classes/"
}
}
The autoload is based on psr-4 and handled by composer.
- Add new abstract class to register ACF Gutenberg block from
block.json
file. - Pass block data to the block error template.
- Add missing composer psalm command
- Use
plugin_basename()
to get plugin directory - Fix various PHPCS & Psalm warnings and errors
- Fix wrong formatting for block ACF classes
- Fix wrong return type in Model class
- Remove Compatibility class
- Remove default Admin class
- Fix all PSALM errors
- Enhance the phpcs:ignore rules to be compatible with skeleton
- Use short array syntax
- Enforce return types
- Use InvalidArgumentException when model wrongly instaciated
- Remove thumbnail deletion on remove_post_thumnail
- Rename get_ID to get_id
- Add psalm
- Remove
_*
methods from Models
- Introduce interfaces and abstract classes to register Gutenberg blocks
- Update copyright date.
- Rename hook :
BEA/Helpers/locate_template/templates
inbeapi_helpers_locate_template_templates
for PHPCS - Improve PHPCS
- Update Singleton to be compatible with PHP8.0
- Remove autoload.php file, it's have to be on the composer.json file autoloading
- Move compatibility class to the classes directory
- Use the PSR-4 naming convention
- Remove widget feature
- Fix misuse of singleton in shortcode factory
- Fix wrong use of get_object_term_cache() and php Exception
- Fix Non-static method init_translations() should not be called statically
- Fix method get_model using model_class in post_type
- Fix textdomain load
- Add french translations
- Fix model class name with namespace
- Fix user model filename
- Fix plugin version number
- Add Shortcode implementation
- Fix title display in widget view
- Add traits
- Fix widget registration
- Add new filter on locate_template
- Initial