0

I created a new post type and for the public parameter i made it false and when i checked this post type and tried to add new items to it i found out that an item titled Auto Draft — Private is already there, so is that normal or not ?

0

Yes, if you start writing a post, but haven't hit save yet, autosaving will create a draft post for you. It'll get cleaned up/replaced on save. You can also delete it if you don't want the contents

  • the thing is i didnt click the create new item button so as soon as i added new post type in my functions.php and checked the admin dashboard the post with draft private is already there. – user173633 Oct 28 '19 at 21:23
  • And you're absolutely sure you didn't open up a post editor even for the briefest of moments? WP won't create a post like that without doing that. What you describe does not happen in vanilla WP out of the box – Tom J Nowell Oct 29 '19 at 12:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.