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:
Sergey Biryukov
2020-04-22 09:38:12 +00:00
parent 7016ad5a78
commit b6391847b4
6 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -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.
*/