-
Home
-
Custom Post Type Creator
- Tips
How to Hide WCK Post Type Creator Admin Menus
function plt_hide_custom_post_type_creator_menus() {
//Hide the "WCK" menu.
remove_menu_page('wck-page');
//Hide the "WCK → Post Type Creator" menu.
remove_submenu_page('wck-page', 'cptc-page');
}
add_action('admin_menu', 'plt_hide_custom_post_type_creator_menus', 12);
Where do I put this code?
How to Hide WCK Post Type Creator Meta Boxes
function plt_hide_custom_post_type_creator_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Wordpress Creation Kit Pro" meta box.
remove_meta_box('wck-cptc-side', $screen->id, 'side');
//Hide the "Wordpress Creation Kit" meta box.
remove_meta_box('wck-cptc-side-two', $screen->id, 'side');
//Hide the "Custom Post Type Creation" meta box.
remove_meta_box('option_page', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_custom_post_type_creator_metaboxes', 20);