During install, register all post types and endpoints so that the rewrite rules are correctly generated. #4699 #4701