How to Hide Connector to CiviCRM with CiviMcRestFace Admin Menus

function plt_hide_connector_civicrm_mcrestface_menus() {
	//Hide the "Settings → CiviCRM McRestFace Connections" menu.
	remove_submenu_page('options-general.php', 'wpcmrf_admin');
	//Hide the "Settings → CiviCRM McRestFace Log" menu.
	remove_submenu_page('options-general.php', 'wpcmrf_calllog');
}

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

Where do I put this code?