[wp-trac] [WordPress Trac] #61604: Split `wp_insert_post` in two
WordPress Trac
noreply at wordpress.org
Tue Jul 9 13:39:07 UTC 2024
#61604: Split `wp_insert_post` in two
-------------------------+-------------------------------
Reporter: drzraf | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Database | Version:
Severity: minor | Resolution:
Keywords: | Focuses: coding-standards
-------------------------+-------------------------------
Comment (by mi5t4n):
@drzraf If the temporary table will have the same structure as `wp_posts`,
we probably can register and use some sort of custom private CPT. After we
do the required processing, we can change the CPT type.
We can use another way also, save the CPT with different `post_status`
like `processing`. Once we do all the required processing, we change the
CPT status to `publish`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61604#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list