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]
- Append a random string to a post permalink
- im trying make a function to auto correct posts when i open the posts in the backoffice
- how to create other sizes of original image in one go wordpress uploads
- Multipage Post URL correction
- alt of attached image in post / pages
- WP Pages: Add checkbox, save and display
- How to control Post view count incresing in sidebar widget posts too?
- Display post in visual composer with custom html
- Set multi posts random categories and tags
- display content in multiple columns
- Adding post date to ACF field
- Point users to a specific url directory for some posts
- Point to a page when there is no results
- My custom query is displaying random posts in random order
- Output wp_link_pages as raw url
- Keep highlight on menu item with post pages
- Can’t get post_updated hook to work
- Repeating post how to solve this
- How to test if user is filtering post list in dashboard
- Get the category of post
- Shortcode: How to add custom posts?
- Only show related posts when another post has same term
- Precedence of page permalinks over woocommerce product category links?
- Add new post only in assigned category
- single- and archive- templates not being applied to custom post types, not even after flushing permalinks
- Display Posts by Categories
- Hide Admin posts & pages in Dashboard
- Post & Category Archives URL structure
- Creating Ordered Query using Meta_key
- Sort Events by Venue Title – Sort Post set by related post ids
- Is there a global page/post/product/anything ID?
- How do I create a ‘selection’ criteria list’ that will then dictate which posts are generated when the user presses search?
- WordPress each user has each content for a page,how to do that?
- How to get post count including nested categories
- WordPress Request Post All Post ID in a Loop? [closed]
- Fixing the WP Post Object for Custom Route
- Post URL duplication adds numerical value
- How can I alternate styling of images in a post? [closed]
- Changing the Category for all posts of an Author
- Auto populate custom fields by post date
- Bulk posts from DRAFT Section
- Is it possible to display QUICK EDIT as default for all posts in wp-admin/edit.php page?
- Custom layout manager for posts
- Add caption to thumbnails in content
- Posting a comment redirects admin/users to blank page
- Custom Taxonomy From Database
- WordPress URL question
- Creating widget – ask for selecting a post in the admin panel
- Multiple Custom Post Type loop logic
- List Authors For Current Category
- How can I filter the post of a CPT by taxonomy Term in admin meta-box dropdown?
- WordPress search for specific Post Type
- Show Posts By Custom Field
- Best Way to detect unique posts in wp rest api
- Get query result according to merged array
- Is it possible to completely replace a post with an action/filter?