Docs: Correct documentation for the `$meta_key` parameter of `get_metadata_default()`.

The parameter is required, not optional.

Follow-up to [48502].

See #43941.

git-svn-id: https://develop.svn.wordpress.org/trunk@48504 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-07-17 13:47:23 +00:00
parent 1c1a9de834
commit 2d0e9b1057
1 changed files with 1 additions and 2 deletions

View File

@ -596,8 +596,7 @@ function get_metadata_raw( $meta_type, $object_id, $meta_key = '', $single = fal
* @param string $meta_type Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user',
* or any other object type with an associated meta table.
* @param int $object_id ID of the object metadata is for.
* @param string $meta_key Metadata key. If not specified, retrieve all metadata for
* the specified object. Default empty.
* @param string $meta_key Metadata key.
* @param bool $single Optional. If true, return only the first value of the specified meta_key.
* This parameter has no effect if meta_key is not specified. Default false.
* @return mixed Single metadata value, or array of values.