WordPress.org

Make WordPress Core

Changeset 50621


Ignore:
Timestamp:
03/31/2021 01:03:54 PM (6 months ago)
Author:
SergeyBiryukov
Message:

Docs: Document the import_id parameter of wp_insert_post().

Follow-up to [9100].

Props donmhico.
Fixes #52943.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r50558 r50621  
    37573757 *     @type string $post_mime_type        The mime type of the post. Default empty.
    37583758 *     @type string $guid                  Global Unique ID for referencing the post. Default empty.
     3759 *     @type int    $import_id             The post ID to be used when inserting a new post.
     3760 *                                         If specified, must not match any existing post ID. Default 0.
    37593761 *     @type int[]  $post_category         Array of category IDs.
    37603762 *                                         Defaults to value of the 'default_category' option.
Note: See TracChangeset for help on using the changeset viewer.