Docs: Add a reference to wp_insert_post() for information on the arguments accepted by wp_update_post().

See #50768.

git-svn-id: https://develop.svn.wordpress.org/trunk@49493 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2020-11-04 01:37:21 +00:00
parent d72c668d55
commit aed826aab1

View File

@@ -4327,7 +4327,8 @@ function wp_insert_post( $postarr, $wp_error = false, $fire_after_hooks = true )
* @since 5.6.0 Added the `fire_after_hooks` parameter.
*
* @param array|object $postarr Optional. Post data. Arrays are expected to be escaped,
* objects are not. Default array.
* objects are not. See wp_insert_post() for accepted arguments.
* Default array.
* @param bool $wp_error Optional. Whether to return a WP_Error on failure. Default false.
* @param bool $fire_after_hooks Optional. Whether to fire the after insert hooks. Default true.
* @return int|WP_Error The post ID on success. The value 0 or WP_Error on failure.