Class 11

[php]

<?php if ( ! defined( ‘ABSPATH’ ) ) { die; } // Cannot access pages directly.
/**
*
* CSFramework Metabox Config
*
* @since 1.0
* @version 1.0
*
*/

function seo_post_meta_function(){

$options = array();

$options[] = array(
‘id’ => ‘_seo_meta_options’,
‘title’ => ‘Post Options’,
‘post_type’ => ‘page’, // or post or CPT or array( ‘page’, ‘post’ )
‘context’ => ‘normal’,
‘priority’ => ‘high’,
‘sections’ => array(

// begin section
array(
‘name’ => ‘seoPostMeta’,
‘title’ => ‘Post Options’,
‘icon’ => ‘fa fa-wifi’,
‘fields’ => array(

// a field
array(
‘id’ => ‘postTitle’,
‘type’ => ‘switcher’,
‘title’ => ‘Enable Title?’,
),
array(
‘id’ => ‘postContent’,
‘type’ => ‘switcher’,
‘title’ => ‘Enable Content?’,
),

),
),
)
);

return $options;
}
add_filter(‘cs_metabox_options’, ‘seo_post_meta_function’);

[/php]

Leave a Reply

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