From 17dc5ba0bfcdfef24598d36d91a66dd4bd7fa6cb Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Wed, 20 Apr 2016 13:53:32 +0000 Subject: [PATCH] Add parameter documentation for 'post_category' to `wp_insert_post()`. Props Latz. Fixes #36601. git-svn-id: https://develop.svn.wordpress.org/trunk@37255 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index 72ffc8dc37..9e2efe8f34 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -3005,6 +3005,8 @@ function wp_get_recent_posts( $args = array(), $output = ARRAY_A ) { * @type int $menu_order The order the post should be displayed in. Default 0. * @type string $post_mime_type The mime type of the post. Default empty. * @type string $guid Global Unique ID for referencing the post. Default empty. + * @type array $post_category Array of category names, slugs, or IDs. + * Defaults to value of the 'default_category' option. * @type array $tax_input Array of taxonomy terms keyed by their taxonomy name. Default empty. * @type array $meta_input Array of post meta values keyed by their post meta key. Default empty. * }