• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Mastodon GitHub Twitter (inactive)
You are here: Home / Archives for CMB2

CMB2

Jigsaw Puzzle Pieces

CMB2 Dependency with Composer

Last updated on May 23, 2019 by Sal Ferrarello

Here is the short answer for how I installed CMB2 as a dependency with Composer for my plugin. { “require”: { “cmb2/cmb2”: “^2.2” }, “autoload” : { “files”: [ “vendor/cmb2/cmb2/init.php” ] }, “extra”: { “installer-paths”: { “vendor/cmb2/cmb2”: [“cmb2/cmb2”] } } } Details of composer.json Require The require section, tells Composer the package (and version) we […]

Filed Under: Dev Tips, Programming, Solution Tagged With: CMB2, WordPress, WordPress Plugin, WordPress Post Meta

Copyright © 2023 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in