Testing of this plugin has been temporarily suspended due to an error. It will automatically resume when a new plugin version is released.
function plt_hide_ays_chatgpt_assistant_menus() {
//Hide "ChatGPT Assistant".
remove_menu_page('ays-chatgpt-assistant');
//Hide "ChatGPT Assistant → Settings".
remove_submenu_page('ays-chatgpt-assistant', 'ays-chatgpt-assistant');
//Hide "ChatGPT Assistant → Front chat".
remove_submenu_page('ays-chatgpt-assistant', 'ays-chatgpt-assistant-front-chat');
//Hide "ChatGPT Assistant → EmbeddingsNew".
remove_submenu_page('ays-chatgpt-assistant', 'ays-chatgpt-assistant-embedding');
//Hide "ChatGPT Assistant → Content Generator".
remove_submenu_page('ays-chatgpt-assistant', 'ays-chatgpt-assistant-content-generator');
//Hide "ChatGPT Assistant → Image Generator".
remove_submenu_page('ays-chatgpt-assistant', 'ays-chatgpt-assistant-image-generator');
//Hide "ChatGPT Assistant → Logs".
remove_submenu_page('ays-chatgpt-assistant', 'ays-chatgpt-assistant-logs');
//Hide "ChatGPT Assistant → Rates".
remove_submenu_page('ays-chatgpt-assistant', 'ays-chatgpt-assistant-rates');
//Hide "ChatGPT Assistant → General Settings".
remove_submenu_page('ays-chatgpt-assistant', 'ays-chatgpt-assistant-general-settings');
//Hide "ChatGPT Assistant → How to Use".
remove_submenu_page('ays-chatgpt-assistant', 'ays-chatgpt-assistant-how-to-use');
//Hide "ChatGPT Assistant → Our Products".
remove_submenu_page('ays-chatgpt-assistant', 'ays-chatgpt-assistant-our-products');
//Hide "ChatGPT Assistant → PRO Features".
remove_submenu_page('ays-chatgpt-assistant', 'ays-chatgpt-assistant-features');
}
add_action('admin_menu', 'plt_hide_ays_chatgpt_assistant_menus', 141);