Make WordPress Core


Ignore:
Timestamp:
09/05/2015 09:01:37 PM (9 years ago)
Author:
johnbillion
Message:

Function docs for the tax_input and meta_input parameters available for wp_insert_post().

See #20451

File:
1 edited

Legend:

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

    r33910 r33922  
    27762776 * @since 1.0.0
    27772777 * @since 4.2.0 Support was added for encoding emoji in the post title, content, and excerpt.
    2778  * @since 4.4.0 A 'meta_input' array can now be passed to $postarr to add post meta data.
     2778 * @since 4.4.0 A 'meta_input' array can now be passed to `$postarr` to add post meta data.
    27792779 *
    27802780 * @see sanitize_post()
     
    28152815 *     @type string $post_mime_type        The mime type of the post. Default empty.
    28162816 *     @type string $guid                  Global Unique ID for referencing the post. Default empty.
     2817 *     @type array  $tax_input             Array of taxonomy terms keyed by their taxonomy name. Default empty.
     2818 *     @type array  $meta_input            Array of post meta values keyed by their post meta key. Default empty.
    28172819 * }
    28182820 * @param bool  $wp_error Optional. Whether to allow return of WP_Error on failure. Default false.
Note: See TracChangeset for help on using the changeset viewer.