Skip to content

megumi-wp-composer/wp-disable-upgrade-notice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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