ogrosko/wp-composer-maintenance

This package is abandoned and no longer maintained. No replacement package was suggested.

Composer pre/post scripts for enabling/disabling wordpress maintenance mode

0.0.2 2017-07-26 08:06 UTC

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"
	]
},