How to Hide the "CF7 Simple Recaptcha" Admin Menu

function plt_hide_contact_form_7_simple_recaptcha_menus() {
	//Hide the "Settings → CF7 Simple Recaptcha" menu.
	remove_submenu_page('options-general.php', 'cf7sr_edit');
}

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

Where do I put this code?