Skip to content

Latest commit

 

History

History
73 lines (50 loc) · 1.78 KB

README.md

File metadata and controls

73 lines (50 loc) · 1.78 KB

megumi/wp-disable-upgrade-notice

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

Composer library for Disabling upgrade notice.

How to use

Place a plugin into mu-plugins

Place a plugins into mu-plugins like following.

<?php
/*
Plugin Name: mu-plugin for example.com
*/

require_once dirname( __FILE__ ) . '/vendor/autoload.php';

That's it!

Create a composer.json

Create and place a composer.json into muplugins/.

{
    "name": "megumi/mu-plugins",
    "authors": [
        {
            "name": "John Smith",
            "email": "[email protected]"
        }
    ],
    "require": {
        "megumi/wp-disable-upgrade-notice": "*"
    }
}

Install libraries

Then run a composer command.

$ composer install

How to update libraries

$ composer update

How to development

$ git clone [email protected]:megumi/wp-disable-upgrade-notice.git
$ cd wp-disable-upgrade-notice
$ composer install

Running a PHPUnit

After you run a composer install, then run phpunit.

$ phpunit