https://github.com/wearerequired/custom-meta-boxes-mu-loader
Loads HM Custom Meta Boxes as a must-use plugin.
https://github.com/wearerequired/custom-meta-boxes-mu-loader
wordpress-muplugin wordpress-plugin
Last synced: 7 months ago
JSON representation
Loads HM Custom Meta Boxes as a must-use plugin.
- Host: GitHub
- URL: https://github.com/wearerequired/custom-meta-boxes-mu-loader
- Owner: wearerequired
- License: gpl-2.0
- Created: 2016-12-15T20:49:26.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-02-07T04:41:06.000Z (about 8 years ago)
- Last Synced: 2025-07-01T16:52:16.844Z (8 months ago)
- Topics: wordpress-muplugin, wordpress-plugin
- Language: PHP
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Custom Meta Boxes MU-Loader
Loads [HM Custom Meta Boxes](https://github.com/humanmade/Custom-Meta-Boxes) as a must-use plugin.
## Installation
The package type is `wordpress-muplugin`. Example of a `composer.json`:
```json
{
"name": "wearerequired/something",
"description": "required.com",
"license": "GPL-2.0+",
"authors": [
{
"name": "required gmbh",
"email": "info@required.ch"
}
],
"require": {
"php": ">=5.3",
"koodimonni/composer-dropin-installer": "dev-master",
"johnpbloch/wordpress": "~4.9",
"humanmade/custom-meta-boxes": "dev-develop",
"wearerequired/custom-meta-boxes-mu-loader": "^1.0"
},
"repositories": [
{
"type": "package",
"package": {
"name": "humanmade/custom-meta-boxes",
"type": "wordpress-plugin",
"version": "dev-develop",
"source": {
"type": "git",
"url": "git@github.com:humanmade/Custom-Meta-Boxes.git",
"reference": "develop"
}
}
}
],
"extra": {
"wordpress-install-dir": "wordpress/wp",
"installer-paths": {
"wordpress/content/plugins/{$name}/": [
"type:wordpress-plugin"
],
"vendor/{$vendor}/{$name}/": [
"type:wordpress-muplugin"
],
"wordpress/content/themes/{$name}/": [
"type:wordpress-theme"
]
},
"dropin-paths": {
"wordpress/content/mu-plugins/": [
"type:wordpress-muplugin"
]
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
```
## Why?
`wp-content/mu-plugins` is designed to only support plugins in a single file. HM Custom Meta Boxes has clearly more than one file.
It also helps to keep the wp-content directory of your project as clean as possible. It should actually be empty because you're loading everything through composer. 😉