Skip to content

Instantly share code, notes, and snippets.

@mustardBees

mustardBees/functions.php

Last active Dec 18, 2015
Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@maisdesign maisdesign commented Jun 11, 2013

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
You can’t perform that action at this time.