How to Hide the "Datafeedr API" Admin Menu

function plt_hide_datafeedr_api_menus() {
	//Hide the "Datafeedr API" menu.
	remove_menu_page('dfrapi');
}

add_action('admin_menu', 'plt_hide_datafeedr_api_menus', 31);

Where do I put this code?