Make WordPress Core

Changeset 48778


Ignore:
Timestamp:
08/10/2020 03:48:25 PM (5 years ago)
Author:
SergeyBiryukov
Message:

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

Follow-up to [48777].

See #50891.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/meta.php

    r48777 r48778  
    544544     * Returning a non-null value will effectively short-circuit the function.
    545545     *
     546     * Possible filter names include:
     547     *
     548     *  - `get_post_metadata`
     549     *  - `get_comment_metadata`
     550     *  - `get_term_metadata`
     551     *  - `get_user_metadata`
     552     *
    546553     * @since 3.1.0
    547554     * @since 5.5.0 Added the `$meta_type` parameter.
     
    614621
    615622    /**
    616      * Filter the default metadata value for a specified meta key and object.
     623     * Filters the default metadata value for a specified meta key and object.
    617624     *
    618625     * The dynamic portion of the hook, `$meta_type`, refers to the meta object type
    619      * (post, comment, term, user, blog, or any other type with an associated meta
    620      * table). Possible filter names include:
     626     * (post, comment, term, user, or any other type with an associated meta table).
     627     *
     628     * Possible filter names include:
    621629     *
    622630     *  - `default_post_metadata`
Note: See TracChangeset for help on using the changeset viewer.