Tips on Customizing Page Builder: KingComposer – Free Drag and Drop page builder by King-Theme

How to Hide KingComposer Admin Menus

function plt_hide_kingcomposer_menus() {
	//Hide "KingComposer".
	//Hide "KingComposer → General Settings".
	remove_submenu_page('kingcomposer', 'kingcomposer');
	//Hide "KingComposer → Shortcode Mapper".
	remove_submenu_page('kingcomposer', 'kc-mapper');
	//Hide "KingComposer → Extensions".
	remove_submenu_page('kingcomposer', 'kc-extensions');
	//Hide "KingComposer → Sections Manager".
	remove_submenu_page('kingcomposer', 'edit.php?post_type=kc-section');

add_action('admin_menu', 'plt_hide_kingcomposer_menus', 11);

Where do I put this code?

How to Hide the "KC Metabox" Meta Box

function plt_hide_kingcomposer_metaboxes() {
	$screen = get_current_screen();
	if ( !$screen ) {

	//Hide the "KC Metabox" meta box.
	remove_meta_box('kc-hidden-metabox', $screen->id, 'advanced');

add_action('add_meta_boxes', 'plt_hide_kingcomposer_metaboxes', 20);