mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user