Your IP : 216.73.216.95


Current Path : /var/test/www/ya/wp-content/themes/youthy/framework/
Upload File :
Current File : /var/test/www/ya/wp-content/themes/youthy/framework/custom-meta.php

<?php


  /**
 * Include and setup custom metaboxes and fields.
 *
 * @category MeanThemes Tools
 * @package  Metaboxes
 * @license  http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later)
 * @link     https://github.com/WebDevStudios/CMB2
 */

add_filter( 'cmb2_admin_init', 'meanthemes_youthy_metaboxes' );
/**
 * Define the metabox and field configurations.
 *
 * @param  array $meta_boxes
 * @return array
 */
function meanthemes_youthy_metaboxes() {


	// Single Post Formats
	$prefix = '_youthy_';


	$youthy_page_subtitle = new_cmb2_box( array(
				'id'         => 'page_subtitle',
		    'title'      => __( 'Subtitle', 'meanthemes' ),
				'object_types'  => array( 'post', 'page' ), // Post type
				'context'    => 'normal',
		    'priority'   => 'high',
				'show_names' => true,
			) );

			$youthy_page_subtitle->add_field( array(
				'name' => __( 'Page Subtitle', 'meanthemes' ),
        'description' => __( 'This will show under the main page tiitle', 'meanthemes' ),
        'id'   => $prefix . 'subtitle',
        'type' => 'text',
			) );

}


?>