masonitedoors/bedrock-autoloader
Composer 安装命令:
composer require masonitedoors/bedrock-autoloader
包简介
An autoloader that enables standard plugins to be required just like must-use plugins. The autoloaded plugins are included during mu-plugin loading. An asterisk (*) next to the name of the plugin designates the plugins that have been autoloaded.
README 文档
README
Standalone version of the Bedrock Autoloader for must-use plugins.
Installation
Require this package, with Composer, in the root directory of your project.
composer require masonitedoors/bedrock-autoloader
Usage
In order to add the drop-in file bedrock-autoloader.php to your site's wp-content/mu-plugins/ directory, it is recommended that you use koodimonni/composer-dropin-installer. Once installed, your project's composer.json should look similar to this:
{
"name": "masonitedoors/my-wordpress-site",
"type": "project",
"license": "GPL-2.0-or-later",
"require": {
"koodimonni/composer-dropin-installer": "*",
"php": "^7.0",
"composer/installers": "^1.4",
"roots/wordpress": "5.4",
"masonitedoors/bedrock-autoloader": "dev-master"
},
"extra": {
"wordpress-install-dir": "html",
"installer-paths": {
"html/wp-content/mu-plugins/{$name}/": [
"type:wordpress-muplugin",
],
"html/wp-content/plugins/{$name}/": [
"type:wordpress-plugin"
],
"html/wp-content/themes/{$name}/": [
"type:wordpress-theme"
]
},
"dropin-paths": {
"html/wp-content/mu-plugins/": [
"package:masonitedoors/bedrock-autoloader:bedrock-autoloader.php"
]
}
},
"config": {
"dropin-installer": "copy"
}
}
Credits
All credits & copyrights belongs to people behind Bedrock.
统计信息
- 总下载量: 1.5k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-16