I am not sure this answers your question directly, but as technical trivia — WordPress actually creates a posts as soon as you open editor, with auto-draft
status. This is being used precisely to have a target for things like attachments and custom field before it is actually saved by user.
So when user “saves” the post for the first times it’s not actually being created, but existing auto-draft is getting changed into draft or published post.
You might have to either replicate this logic or rebuild related functionality, which relies on it.
Related Posts:
- WordPress wp_editor to post and edit
- Front-End Post Submission
- How to upload post thumbnail while wp_insert_post?
- Publish pending article from front end with a button?
- strip only specific tags (like ), but keep other tags (like )
- Get names of authors who have edited a post
- Edit a post from frontend. post_tags get saved, but not separated
- Developing a secure front end posting form
- How can I edit a post from the frontend?
- Developing a secure front end post editing form
- Post from front-end only by logged in users, form posts as “posted by:
- upload featured image from front end using wordpress add media button
- Post & edit a post from front end along with upload, dropdown, and other inputs
- How can I control multiple editing of wordpress posts?
- Cannot Update A Post, 404 Error
- Frontend Post Excerpt field mapping
- Frontend Post Form Validation
- Redirection not working in this front end post submission form?
- How to change the color theme per post?
- How to make a bilingual front-end post using the plugin WP User Frontend and Polylang or qTranslate?
- Change Post Status From Front End
- 404 error on default post type and default taxonomy fronted page
- Lock post editing to one user at a time – wp_check_post_lock
- Front end post submission form with duplicate type fields
- Replace image name on upload to the new post name on front-end form
- Edit the post title from the frontend
- Can i have more than one form for front end posting in one template [closed]
- Get Users Post ID
- How to limit post (Exception pages) for current user in each role in front end?
- Include Recent Post in Category
- Create posts by any logged in users
- How to generate an HTML link automatically from URL in a users’ post
- how let users select categories for posts in frontend?
- Creating a frontend blog post form for logged in users only
- Allow reader to reorder posts for themselves (oldest first)
- Send the post id to a front end edit post form
- Post/Edit/Delete Post From Frontend… How?
- Send/Publish a Post front end
- How Can I Limit Users to Post Creation For My Frontend Theme?
- User driven content problems
- How to use wp_editor(); in functions.php then retrieve content in the template
- Create post from form with image
- Stop Authors from submitting spam post
- How edit footer copyright info? [closed]
- Add custom Attachment Display Setting for images
- Rewriting post slug before post save
- Replacing all attachment links in post with media file link
- Change the default number of posts to show on mobile version
- Post content being duplicated by the_content();
- How To Keep Posts from Being Displayed Two or More Times on My Homepage? [closed]
- custom wordpress post loop – hide iframe content
- Add custom field automatically (add_post_meta) with value based on number of words of article
- How to access featured image?
- Replace ‘published on date’ with ‘modified on date’ on Posts
- How to display category from recent posts?
- Best way to assign post position in a news site homepage? (no categories, no sticky posts)
- How do I restart my loop with get_next_post()?
- “Duplicate” Posts Appearing Since 3.1.2 Update
- Rename “post” to “article” throughout the admin back end [duplicate]
- Need to remove duplication content on home page in wordpress theme
- Is it possible to add/tick a category to a post when it is created?
- The_excerpt() doesn’t parse – how to change that?
- Can’t understand why sometimes a [caption] field appears
- Trying to edit archive.php to only show post extract, with featured image
- Extracting relevant tags associated with that particular single post only
- Why in my query is display two title?
- Custom posts listing widget always returns 1 extra result
- Post Title List on home page with time
- Use posts_where to exclude posts ids from wp_query
- Get x recent posts by author?
- Delete all Tag Links from Posts
- Adjust the order for returned posts
- Post in bulk based on category template
- user_has_cap filter allows “edit_others_posts” but not is not allowing updating/publishing
- Yoast breadcrumb URL shows category instead of the page
- Add data attribute of post_id for Internal links
- Display/Filter post using if else statement
- Contributor edits published post and sends for review – post is made private?
- Why does my “Add New Post” page have an old post in it?
- link to edit a post has empty target
- Nestling Posts Under Page & Justify Text
- Adding posts updates previous post
- How do you update post date (year only) in a separate custom field?
- Creating a link to the first post in a category
- sometimes on saving a post as draft, it says Access Denied You don’t have permission to access “mywebsite.com/wp-admin/post.php”
- WordPress text field in array problem
- List Authors For Current Category
- Get query result according to merged array
- cleaning out posts that don’t exist anymore but links are still there
- Custom URL Structure for posts with subcategories
- Add tags to post before it’s created
- can’t post immediately
- save_post not working
- Password-protected Posts lead to 404 Error
- Multiple blog “feeds” in a single blog each with distinctly styled post pages
- How to get pagination working with “Pending” Posts
- Post’s arent displaying
- Show with echo if a post has two or more categories
- How to automatically convert a form with HTML link into post
- WordPress Post Updating is Not Working