Make WordPress Core


Ignore:
Timestamp:
04/22/2020 09:38:12 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Document the default value of $single and $prev_value parameters in various metadata functions.

Props denisco.
See #49572.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/meta.php

    r47390 r47610  
    150150 * @param mixed  $meta_value Metadata value. Must be serializable if non-scalar.
    151151 * @param mixed  $prev_value Optional. If specified, only update existing metadata entries
    152  *                           with this value. Otherwise, update all entries.
     152 *                           with this value. Otherwise, update all entries. Default empty.
    153153 * @return int|bool The new meta field ID if a field with the given key didn't exist and was
    154154 *                  therefore added, true on successful update, false on failure.
Note: See TracChangeset for help on using the changeset viewer.