Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mustardBees
Last active December 18, 2015 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mustardBees/5757836 to your computer and use it in GitHub Desktop.
Save mustardBees/5757836 to your computer and use it in GitHub Desktop.
Include CMB's init.php on the 'init' WordPress hook
<?php
/**
* Initialise CMB
*
* @author Phil Wylie
* @link http://goo.gl/MhJPe
*/
function pw_initialise_cmb() {
if ( ! class_exists( 'cmb_Meta_Box' ) ) {
require 'lib/init.php';
}
}
add_action( 'init', 'pw_initialise_cmb', 9999 );
@maisdesign
Copy link

No more errors :-)
But also no Custom meta boxes -.-''''''

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment