How to Hide the "MyPost2 ⚠️" Admin Menu

function plt_hide_mypost2_menus() {
	//Hide the "MyPost2 ⚠️" menu.
	remove_menu_page('mypost2-setup');
}

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

Where do I put this code?