Make WordPress Core

Changeset 61275


Ignore:
Timestamp:
11/20/2025 07:27:52 PM (6 months ago)
Author:
SergeyBiryukov
Message:

Docs: Improve description for wp_insert_post().

Follow-up to [6379], [8669].

Props rutujaparamane2004.
See #64224.

File:
1 edited

Legend:

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

    r61178 r61275  
    44364436
    44374437/**
    4438  * Inserts or update a post.
    4439  *
    4440  * If the $postarr parameter has 'ID' set to a value, then post will be updated.
     4438 * Inserts or updates a post in the database.
     4439 *
     4440 * If the `$postarr` parameter contains an 'ID', the corresponding post will be updated.
     4441 * If not, a new post will be created using the values provided.
    44414442 *
    44424443 * You can set the post date manually, by setting the values for 'post_date'
Note: See TracChangeset for help on using the changeset viewer.