WordPress.org

Make WordPress Core

Opened 7 months ago

Closed 7 months ago

#52943 closed defect (bug) (fixed)

Document the 'import_id' parameter in wp_insert_post()

Reported by: SergeyBiryukov Owned by: SergeyBiryukov
Milestone: 5.8 Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: has-patch
Focuses: docs Cc:

Description (last modified by SergeyBiryukov)

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 (4)

#1 @SergeyBiryukov
7 months ago

  • Description modified (diff)

This ticket was mentioned in PR #1144 on WordPress/wordpress-develop by donmhico.


7 months ago

  • Keywords has-patch added; needs-patch removed

This PR adds docs for $import_id param.

Trac ticket: https://core.trac.wordpress.org/ticket/52943

#3 @donmhico
7 months ago

Thanks for the ticket @SergeyBiryukov. I attached a PR that adds the doc for $import_id

#4 @SergeyBiryukov
7 months ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 50621:

Docs: Document the import_id parameter of wp_insert_post().

Follow-up to [9100].

Props donmhico.
Fixes #52943.

Note: See TracTickets for help on using tickets.