Skip to content

Commit

Permalink
Docs: Update documentation for get_{$meta_type}_metadata filter for…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
SergeyBiryukov committed Aug 10, 2020
1 parent d434a22 commit 635ae16
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/wp-includes/meta.php
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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`
Expand Down

0 comments on commit 635ae16

Please sign in to comment.