dev-master
9999999-devScripts for use with Wordpress managed via Composer
The Requires
The Development Requires
Wallogit.com
2017 © Pedro Peláez
Scripts for use with Wordpress managed via Composer
Helpful scripts for use with Wordpress managed via Composer, (*1)
composer require ethanclevenger91/wordpress-composer-scripts., (*2)
Or manually add it to your composer.json file., (*3)
This package provides several scripts designed to do useful things/provide useful information when managing your WordPress installation via composer., (*4)
To use, assign functions to composer events, like so:, (*5)
"scripts": {
"pre-update-cmd": "WordpressComposerScripts\\Updates::preUpdateCommand",
"post-update-cmd":"WordpressComposerScripts\\Updates::postUpdateCommand"
}
The table below provides information as to what scripts are available, what they do, and what composer event they should be attached to. All classes are under the namespace WordpressComposerScripts., (*6)
| Function | Composer Event | Description |
|---|---|---|
Updates::preUpdateCommand |
pre-update-cmd |
Write plugin information to temp file before updating. To be used with Updates::postUpdateCommand
|
Updates::preUpdateCommand |
post-update-cmd |
Compare plugin information post-update with plugin information pre-update and print a table with the results. To be used with Updates::preUpdateCommand
|
Scripts for use with Wordpress managed via Composer