mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 07:36:58 +00:00
Docs: Document the default value of $single and $prev_value parameters in various metadata functions.
Props denisco. See #49572. git-svn-id: https://develop.svn.wordpress.org/trunk@47610 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2136,7 +2136,7 @@ function get_post_meta( $post_id, $key = '', $single = false ) {
|
||||
* @param int $post_id Post ID.
|
||||
* @param string $meta_key Metadata key.
|
||||
* @param mixed $meta_value Metadata value. Must be serializable if non-scalar.
|
||||
* @param mixed $prev_value Optional. Previous value to check before updating.
|
||||
* @param mixed $prev_value Optional. Previous value to check before updating. Default empty.
|
||||
* @return int|bool The new meta field ID if a field with the given key didn't exist and was
|
||||
* therefore added, true on successful update, false on failure.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user