Register option tree metabox

function my_theme_custom_meta_boxes() {

$post_meta_box = array(
'id'          => 'post_meta_box',
'title'       => 'Metabox',
'pages'       => array( 'post' ),
'context'     => 'normal',
'priority'    => 'high',
'fields'      => array(
  array(
    'label'       => 'Title',
    'id'          => 'title',
    'type'        => 'text'
  )
)
);
ot_register_meta_box( $post_meta_box );

Leave a Reply

Your email address will not be published. Required fields are marked *