Bundling Meta Box

Support General Bundling Meta Box

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31748
    CédricCédric
    Participant

    Hi,

    For a new website development, I am trying to bundle Meta Box into my own plugin and followed this tutorial :
    https://metabox.io/bundle-metabox-plugin-create-customfields/

    As I need premium features, I used this composer file :
    https://github.com/wpmetabox/library/blob/master/composer/composer.json

    It works fine, except that the Meta Box Menu is showing in the site admin dashboard menu, and I get the "Meta Box AIO requires Meta Box to work. Please install and activate it." warning on all dashboard pages.

    How can I hide Meta Box menu and warnings when bundling it into a plugin ?

    Thanks !

    Cédric

    #31772
    Long NguyenLong Nguyen
    Moderator

    Hi,

    I've tested to bundle Meta Box and MB AIO in a custom plugin but do not see any issue like that. Here is the content of the file composer.json

    {
      "repositories":[
        {
          "type": "composer",
          "url": "https://wpackagist.org"
        },
        {
          "type": "composer",
          "url": "https://packages.metabox.io/2484d090029feaab8ce106de5e693400"
        }
      ],
      "require": {
        "wpackagist-plugin/meta-box": "dev-trunk",
        "meta-box/meta-box-aio": "dev-master",
        "composer/installers": "^1"
      },
      "extra": {
        "installer-paths": {
          "vendor/meta-box/meta-box": ["wpackagist-plugin/meta-box"],
          "vendor/meta-box/{$name}/": ["type:wordpress-plugin"]
        }
      },
      "autoload": {
        "files": [
          "vendor/meta-box/meta-box/meta-box.php",
          "vendor/meta-box/meta-box-aio/meta-box-aio.php"
        ]
      }
    }

    You can also hook to the action tgmpa_register to remove the notice text. Find it in the file /meta-box-aio/src/Plugin.php

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.