wordpress/wp-content/themes/basic/themify/themify-metabox/example-functions.php
/**
 * Register a custom meta box to display on Page post type
 *
 * @return array
 */
Register a custom meta box to display on Page post type
@return array
Register a custom meta box to display on Page post type @return array
function themify_metabox_example_meta_box( $meta_boxes ) {
	$meta_boxes['tm-example'] = array(
		'id' => 'tm-example', 
		'title' => __( 'Themify Metabox Example', 'themify' ),
		'context' => 'normal',
		'priority' => 'high',
		'screen' => array( 'page' ),
	);
	return $meta_boxes;
}
function themify_metabox_example_meta_box ( $ meta_boxes ) { $ meta_boxes [ 'tm-example' ] = array ( 'id' => 'tm-example' , 'title' => __ ( 'Themify Metabox Example' , 'themify' ) , 'context' => 'normal' , 'priority' => 'high' , 'screen' => array ( 'page' ) , ) ; return $ meta_boxes ; }
Register a custom meta box to display on Page post type
 @return array
Register a custom meta box to display on Page post type @return array
// later, to add fields to this metabox we'll use "themify_metabox/fields/tm-example" filter hook, see function