10. Create a file called myposttype.php
<?php
/**
* Plugin Name: Your Custom Post Type plugin
* Plugin URI: http://yourpluginswebsite.com
* Description: A brief description of your Plugin.
* Version: The Plugin's Version Number, e.g.: 1.0
* Author: Your Name
* Author URI: http://yourwebsite.com
* License: A "Slug" license name e.g. GPL2
*/
14. Let’s add a meta box
function add_cpt_metabox(){
add_meta_box('cpt_meta', 'Speaker Meta Box', 'cpt_meta',
'wordsesh','side', 'default');
}
add_action('add_meta_boxes', 'add_cpt_metabox');