ogrosko / wp-composer-maintenance
Composer pre/post scripts for enabling/disabling wordpress maintenance mode
Installs: 49
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Type:composer-scripts
Requires
- composer-plugin-api: ^1.0
This package is not auto-updated.
Last update: 2024-02-08 07:37:44 UTC
README
When you are using Wordpress with composer this scripts automatically put you website to maintenance mode when you run composer update
.
wp-composer-maintenance are collection of simple scripts for composer pre-update/post-update section.
Installation using Composer
$ composer require ogrosko/wp-composer-maintenance
Usage
Add following config in scripts
section of your composer.json
file
"scripts": { "pre-update-cmd": [ "OGrosko\\Composer\\WpComposerMaintenance::maintenance_enable" ], "post-update-cmd": [ "OGrosko\\Composer\\WpComposerMaintenance::maintenance_disable" ] },