Last active
December 18, 2015 08:59
-
-
Save mustardBees/5757836 to your computer and use it in GitHub Desktop.
Include CMB's init.php on the 'init' WordPress hook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No more errors :-)
But also no Custom meta boxes -.-''''''