Tips on Customizing AIKCT Engine Chatbot, ChatGPT, Gemini, GPT-4o Best AI Chatbot

How to Hide AIKCT Engine Chatbot, ChatGPT, Gemini, GPT-4o Best AI Chatbot Admin Menus

function plt_hide_ai_seo_translator_menus() {
	//Hide "KCT AI Engine Settings".
	remove_menu_page('kctai-settings');
	//Hide "KCT AI Engine Settings → KCT AI Engine Settings".
	remove_submenu_page('kctai-settings', 'kctai-settings');
	//Hide "KCT AI Engine Settings → Integrations".
	remove_submenu_page('kctai-settings', 'kctai-integrations');
	//Hide "KCT AI Engine Settings → Prompts Manager".
	remove_submenu_page('kctai-settings', 'edit.php?post_type=aikct_prompt');
	//Hide "KCT AI Engine Settings → Affiliation".
	remove_submenu_page('kctai-settings', 'kctai-settings-affiliation');
	//Hide "KCT AI Engine Settings → Contact Us".
	remove_submenu_page('kctai-settings', 'kctai-settings-contact');
	//Hide "KCT AI Engine Settings → Upgrade".
	remove_submenu_page('kctai-settings', 'kctai-settings-pricing');
}

add_action('admin_menu', 'plt_hide_ai_seo_translator_menus', 1000000000);

Where do I put this code?

How to Hide AIKCT Engine Chatbot, ChatGPT, Gemini, GPT-4o Best AI Chatbot Meta Boxes

function plt_hide_ai_seo_translator_metaboxes() {
	$screen = get_current_screen();
	if ( !$screen ) {
		return;
	}

	//Hide the "Prompt Input" meta box.
	remove_meta_box('my_prompt_meta', $screen->id, 'side');
	//Hide the "Prompt Parameters" meta box.
	remove_meta_box('aikct_prompt_params', $screen->id, 'normal');
}

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