Download the PHP package devgeniem/wp-geniem-project-bells-and-whistles without Composer
On this page you can find all versions of the php package devgeniem/wp-geniem-project-bells-and-whistles. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download devgeniem/wp-geniem-project-bells-and-whistles
More information about devgeniem/wp-geniem-project-bells-and-whistles
Files in devgeniem/wp-geniem-project-bells-and-whistles
Package wp-geniem-project-bells-and-whistles
Short Description Geniem WP Project Bells & Whistles
License GPL-3.0-or-later
Homepage https://github.com/devgeniem/wp-geniem-project-bells-and-whistles
Informations about the package wp-geniem-project-bells-and-whistles
Geniem WP Project Bells & Whistles
This WordPress mu-plugin is a collection of fixes and configurations for Geniem WordPress projects. A mu-plugin ensures that all functionalities get executed at an early stage of the WordPress bootstrap process and execution order can be controlled by using WordPress actions and filters.
Installation
The boilerplate plugin works as a WordPress mu-plugin but requires the Bedrocks' mu-plugin autoloader. Install the plugin with Composer:
Features
- Composer setup for WordPress plugins
- PSR-4 autoloading for namespace \Geniem\Project in the src/ directory.
Feature classes
DisableAdminEmailVerification
Disables the periodical admin email verification that was introduced in WordPress version 5.3.
FixStreamDateFormat
Fixes the date format in the WP Stream plugin database queries to make it work with Geniem's databases.
Disabling a feature class
To disable a feature defined in a specific class, add its class name without the namespace into the following constant in your WordPress configuration file (e.g. wp-config.php):
Contributions
This plugin is intended to contain various fixes and WP bootstrapping features that should be added, updated or removed as needed.
Adding a feature
- Add a class for the feature into the src/ directory following the PSR-4 namespace convention.
- Add the function' class name into the $classes array in plugin.php. The class is instantiated automatically.
- Test the feature well
- Update the changelog and create a pull request
Encapsulation
Encapsulate your features well meaning fixes and configurations for a specific WordPress feature or plugin are done in one class. This keeps the repository clean and easy to maintain.