Docs: Update documentation for get_{$meta_type}_metadata filter for consistency with default_{$meta_type}_metadata.

Follow-up to [48777].

See #50891.

git-svn-id: https://develop.svn.wordpress.org/trunk@48778 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-08-10 15:48:25 +00:00
parent d434a22552
commit 635ae16e85

View File

@ -543,6 +543,13 @@ function get_metadata_raw( $meta_type, $object_id, $meta_key = '', $single = fal
* (post, comment, term, user, or any other type with an associated meta table). * (post, comment, term, user, or any other type with an associated meta table).
* Returning a non-null value will effectively short-circuit the function. * Returning a non-null value will effectively short-circuit the function.
* *
* Possible filter names include:
*
* - `get_post_metadata`
* - `get_comment_metadata`
* - `get_term_metadata`
* - `get_user_metadata`
*
* @since 3.1.0 * @since 3.1.0
* @since 5.5.0 Added the `$meta_type` parameter. * @since 5.5.0 Added the `$meta_type` parameter.
* *
@ -613,11 +620,12 @@ function get_metadata_default( $meta_type, $object_id, $meta_key, $single = fals
} }
/** /**
* Filter the default metadata value for a specified meta key and object. * Filters the default metadata value for a specified meta key and object.
* *
* The dynamic portion of the hook, `$meta_type`, refers to the meta object type * The dynamic portion of the hook, `$meta_type`, refers to the meta object type
* (post, comment, term, user, blog, or any other type with an associated meta * (post, comment, term, user, or any other type with an associated meta table).
* table). Possible filter names include: *
* Possible filter names include:
* *
* - `default_post_metadata` * - `default_post_metadata`
* - `default_comment_metadata` * - `default_comment_metadata`