Hey @iowjfowei can you please tell me where i may went wrong here.
I understand I supposes to change the MY_CUSTOM_POST_TYPE_NAME
to my custom post type slug name right..?
example see the code below am using provided from @bainternet
//using a filter hook
add_filter('USC_allowed_post_types','usc_filter_post_types');
function usc_filter_post_types($types){
//add a custom post type
$types[] = 'portfolio';
//remove a post type
if(($key = array_search('post', $types)) !== false) {
unset($types[$key]);
}
}
//or using action hook
add_action('USC_add_meta_box','usc_add_metabox_to_ctp');
function usc_add_metabox_to_ctp($obj){
add_meta_box(
'User_specific_content',
__( 'User specific content box'),
array($obj,'User_specific_content_box_inner'),
'portfolio'
);
}