-
Home
-
Smart Sense – AI Knowledge Base for Posts, Pages, and CPTs
- Tips
function plt_hide_smart_sense_menus() {
//Hide "Tools → Scheduled Actions".
remove_submenu_page('tools.php', 'action-scheduler');
//Hide "Smart Sense".
remove_menu_page('smart-sense');
//Hide "Smart Sense → Dashboard".
remove_submenu_page('smart-sense', 'http://127.0.0.1/wp-admin/admin.php?page=smart-sense#/dashboard');
//Hide "Smart Sense → Add Documents".
remove_submenu_page('smart-sense', 'http://127.0.0.1/wp-admin/admin.php?page=smart-sense#/documents');
//Hide "Smart Sense → Settings".
remove_submenu_page('smart-sense', 'http://127.0.0.1/wp-admin/admin.php?page=smart-sense#/settings');
}
add_action('admin_menu', 'plt_hide_smart_sense_menus', 11);
Where do I put this code?