Skip to content
This repository was archived by the owner on Dec 17, 2018. It is now read-only.

Added option to customize the URL path #655

Open
wants to merge 3 commits into
base: trunk
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions init.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,16 @@
// Autoload helper classes
spl_autoload_register('cmb_Meta_Box::autoload_helpers');

// Define URL path
if ( ! defined( 'CMB_META_BOX_URL' ) )
define( 'CMB_META_BOX_URL', cmb_Meta_Box::get_meta_box_url() );

$meta_boxes = array();
$meta_boxes = apply_filters( 'cmb_meta_boxes', $meta_boxes );
foreach ( $meta_boxes as $meta_box ) {
$my_box = new cmb_Meta_Box( $meta_box );
}

define( 'CMB_META_BOX_URL', cmb_Meta_Box::get_meta_box_url() );

/**
* Create meta boxes
*/
Expand Down