WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/14/2020 11:54:26 AM (17 months ago)
Author:
johnbillion
Message:

Docs: Correct and improve inline docs for parameters that accept a callback function.

See #49572

File:
1 edited

Legend:

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

    r48411 r48473  
    12411241 *                                         In other words, when calling get_metadata() with `$single` set to `false`,
    12421242 *                                         the default value given here will be wrapped in an array.
    1243  *     @type string     $sanitize_callback A function or method to call when sanitizing `$meta_key` data.
    1244  *     @type string     $auth_callback     Optional. A function or method to call when performing edit_post_meta,
     1243 *     @type callable   $sanitize_callback A function or method to call when sanitizing `$meta_key` data.
     1244 *     @type callable   $auth_callback     Optional. A function or method to call when performing edit_post_meta,
    12451245 *                                         add_post_meta, and delete_post_meta capability checks.
    12461246 *     @type bool|array $show_in_rest      Whether data associated with this meta key can be considered public and
Note: See TracChangeset for help on using the changeset viewer.