WP Manifestindependent plugin directory
manifest / developer / custom-meta-boxes-mu-loader

Custom Meta Boxes MU-Loader

Loads HM Custom Meta Boxes as a must-use plugin.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/wearerequired/custom-meta-boxes-mu-loader/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Loads HM Custom Meta Boxes as a must-use plugin.

Installation

The package type is wordpress-muplugin. Example of a composer.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. 😉