-
Home
-
WP Search with Algolia
- Tips
function plt_hide_wp_search_with_algolia_menus() {
//Hide the "Algolia Search" menu.
remove_menu_page('algolia-account-settings');
//Hide the "Algolia Search → Algolia Search" menu.
remove_submenu_page('algolia-account-settings', 'algolia-account-settings');
//Hide the "Algolia Search → Premium Support" menu.
remove_submenu_page('algolia-account-settings', 'algolia-account-premium-support');
}
add_action('admin_menu', 'plt_hide_wp_search_with_algolia_menus', 1001);
Where do I put this code?