megumi / wp-disable-upgrade-notice
0.2.0
2015-03-07 07:47 UTC
Requires
- php: >=5.3
This package is not auto-updated.
Last update: 2024-09-14 16:29:29 UTC
README
用于禁用升级通知的 Composer 库。
如何使用
将插件放入 mu-plugins
按照以下方式将插件放入 mu-plugins。
<?php
/*
Plugin Name: mu-plugin for example.com
*/
require_once dirname( __FILE__ ) . '/vendor/autoload.php';
这就完成了!
创建 composer.json
在 muplugins/
中创建并放置一个 composer.json。
{
"name": "megumi/mu-plugins",
"authors": [
{
"name": "John Smith",
"email": "john@example.com"
}
],
"require": {
"megumi/wp-disable-upgrade-notice": "*"
}
}
安装库
然后运行 composer
命令。
$ composer install
如何更新库
$ composer update
如何进行开发
$ git clone git@github.com:megumi/wp-disable-upgrade-notice.git
$ cd wp-disable-upgrade-notice
$ composer install
运行 PHPUnit
在运行 composer install
后,然后运行 phpunit
。
$ phpunit