#52943 closed defect (bug) (fixed)
Document the 'import_id' parameter in wp_insert_post()
| Reported by: | SergeyBiryukov | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.8 |
| Component: | Posts, Post Types | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | docs |
Description (last modified by )
wp_insert_post() has an undocumented 'import_id' parameter added in [9100].
It can be used to preserve post IDs during import and should be properly documented in the function DocBlock.
Related: #37818
Change History (5)
This ticket was mentioned in PR #1144 on WordPress/wordpress-develop by donmhico.
5 years ago
#2
- Keywords has-patch added; needs-patch removed
#3
@
5 years ago
Thanks for the ticket @SergeyBiryukov. I attached a PR that adds the doc for $import_id
@SergeyBiryukov commented on PR #1144:
2 years ago
#5
Thanks for the PR! Merged in r50621.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This PR adds docs for
$import_idparam.Trac ticket: https://core.trac.wordpress.org/ticket/52943