承接 tivwp/tivwp-force-deactivate-plugins 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tivwp/tivwp-force-deactivate-plugins

Composer 安装命令:

composer require tivwp/tivwp-force-deactivate-plugins

包简介

TIVWP Force Deactivate Plugins

README 文档

README

Automatically disables plugins on production server.

If the WP_LOCAL_DEV define is NOT true, disables plugins that you specify.

This is the reverse logic of the CWS_Disable_Plugins_When_Local_Dev by Mark Jaquith (@markjaquith).

To install

  • Make sure you have the following settings in your project's composer.json:
{
	"require": {
		"composer/installers": "^1.0"
	},
	"extra": {
		"installer-paths": {
			"path/to/mu-plugins/{$name}/": [
				"type:wordpress-muplugin"
			]
		}
	}
}
  • Run this in your project's root folder:
composer require tivwp/tivwp-force-deactivate-plugins
  • The plugin files will be installed in the path/to/mu-plugins/tivwp-force-deactivate-plugins folder. However, WordPress ignores subfolders in the mu-plugins. Therefore, you need to copy the tivwp-force-deactivate-plugins.php one level up, to the mu-plugins.

Settings

  • Put this to a local config file (excluded from the repo):
define( 'WP_LOCAL_DEV', true );
  • and this - to the wp-config.php (edit, of course):
define( 'TIVWP_LOCAL_DEV_PLUGINS', array(
   'debug-bar/debug-bar.php',
   'query-monitor/query-monitor.php',
   'tivwp-email/tivwp-email.php',
) );

Author

  • Gregory Karpinsky (@tivnet)

License

GPL-3.0

统计信息

  • 总下载量: 18
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2017-04-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固