update custom post types and custom taxonomy in functions