Support » Plugins and Hacks » Hacks » CPT w/o title saving Auto Draft and meta upon creation

  • Resolved Dankicity

    (@dankicity)


    Not sure what’s going wrong. If you go to create a new ‘session’ in my CPT and then leave the screen it creates an auto-draft that is unable to be deleted.

    Secondary problem which I think is directly related to the first is that all of the meta data comes prefilled right at creating the session.

    The CPT doesn’t support titles, or anything else. It’s basically just a meta box and custom taxonomy. Except I do set the title and then slug upon save. I’m not sure if that is why I can’t delete the auto draft. Possibly the wrong hook that hits too early and triggers a save but I doubt it.

    Any hints?

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Note: this is being initialized in another class.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘CPT w/o title saving Auto Draft and meta upon creation’ is closed to new replies.