Skip to content

Collection of simple scripts for composer pre-update/post-update section used for enable/disable Wordpress maintenance mode.

License

Notifications You must be signed in to change notification settings

ogrosko/wp-composer-maintenance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wp-composer-maintenance

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

About

Collection of simple scripts for composer pre-update/post-update section used for enable/disable Wordpress maintenance mode.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages