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:
parent
1c1a9de834
commit
2d0e9b1057
@ -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',
|
* @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.
|
* or any other object type with an associated meta table.
|
||||||
* @param int $object_id ID of the object metadata is for.
|
* @param int $object_id ID of the object metadata is for.
|
||||||
* @param string $meta_key Metadata key. If not specified, retrieve all metadata for
|
* @param string $meta_key Metadata key.
|
||||||
* the specified object. Default empty.
|
|
||||||
* @param bool $single Optional. If true, return only the first value of the specified meta_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.
|
* This parameter has no effect if meta_key is not specified. Default false.
|
||||||
* @return mixed Single metadata value, or array of values.
|
* @return mixed Single metadata value, or array of values.
|
||||||
|
Loading…
Reference in New Issue
Block a user