Support » Plugin: Custom Post Type UI » Delete / Remove CPT

  • Resolved thekartikahuja

    (@thekartikahuja)


    Howdy!

    I earlier created “career” (plural “careers”, singular “career”) as CPT but due to SEO benefits I wanted to migrate it to “job” slug (jobs as plural, job as singular), I went and edited the “career” one and renamed it with CHECKED “Migrate posts to newly renamed post type?” The one post I had created was migrated to the new CPT “Job”

    Currently, I want to delete the careers one completely and understand the best practises on migrating the created CPT.

    I am somewhat new to it but I can learn and implement the right best practices. I did 30 min google search but couldn’t find anything around it, hence I posted here.

    Thank you

Viewing 1 replies (of 1 total)
  • Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    In terms of migrating, there’s really not much to it internally and if you clicked “migrate” before saving, then the “careers” post type should be proverbially “no more” already.

    Essentially all we do with this functionality is programmatically re-set the post type column value from the wp_posts entries from the original CPT, to the new one. We then also save the settings with the new slug, and delete the old index from our array.

    Everything else, should be alright, as far as I’m aware, unless you have specific questions on very specific details.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.