How to Hide the "Google Reviews Widget" Admin Menu

function plt_hide_widget_google_reviews_menus() {
	//Hide the "Settings → Google Reviews Widget" menu.
	remove_submenu_page('options-general.php', 'grw');
}

add_action('admin_menu', 'plt_hide_widget_google_reviews_menus', 11);

Where do I put this code?