From 635ae16e851bb913514fdf76d7caca61fdbe80f7 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 10 Aug 2020 15:48:25 +0000 Subject: [PATCH] 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 --- src/wp-includes/meta.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/meta.php b/src/wp-includes/meta.php index 303fb29679..96ce28dee9 100644 --- a/src/wp-includes/meta.php +++ b/src/wp-includes/meta.php @@ -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). * 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 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 - * (post, comment, term, user, blog, or any other type with an associated meta - * table). Possible filter names include: + * (post, comment, term, user, or any other type with an associated meta table). + * + * Possible filter names include: * * - `default_post_metadata` * - `default_comment_metadata`