Skip to content

Instantly share code, notes, and snippets.

View dejardine's full-sized avatar

Nick de Jardine dejardine

View GitHub Profile
@dejardine
dejardine / gist:4f4dfac658649cdee250ddc10167eec3
Created June 26, 2019 03:44
Load Metabox via Functions
require get_template_directory() . '/lib/meta-box/meta-box.php'; // Metabox
require get_template_directory() . '/lib/meta-box-group/meta-box-group.php'; // Metabox Groups
require get_template_directory() . '/lib/meta-box-show-hide/meta-box-show-hide.php'; // Metabox Show / Hide
require get_template_directory() . '/lib/meta-box-conditional-logic/meta-box-conditional-logic.php'; // Metabox Show / Hide
// Include the meta box definition (the file where you define meta boxes, see `demo/demo.php`)
include 'meta.php';