now supports editing and deleting all post types