-
Home
-
SearchWP Modal Search Form
- Tips
function plt_hide_searchwp_modal_search_form_menus() {
//Hide the "SearchWP" menu.
remove_menu_page('searchwp-modal-form');
//Hide the "SearchWP → Modal Form" menu.
remove_submenu_page('searchwp-modal-form', 'searchwp-modal-form');
//Hide the "SearchWP → Upgrade to Pro" menu.
remove_submenu_page('searchwp-modal-form', 'https://searchwp.com/?utm_source=WordPress&utm_medium=Admin+Menu+Upgrade+Link&utm_campaign=Modal+Search+Form&utm_content=Upgrade+to+Pro');
}
add_action('admin_menu', 'plt_hide_searchwp_modal_search_form_menus', 11);
Where do I put this code?