function plt_hide_wp_webhooks_menus() { //Hide the "Settings → WP Webhooks" menu. remove_submenu_page('options-general.php', 'wp-webhooks-pro'); } add_action('admin_menu', 'plt_hide_wp_webhooks_menus', 151);
Where do I put this code?