WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/13/2019 01:51:00 AM (2 months ago)
Author:
kadamwhite
Message:

Docs: Clarify custom-fields support requirement for viewing custom post meta in REST API.

Fixes #47866.

File:
1 edited

Legend:

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

    r45639 r45786  
    11301130 *     @type string $sanitize_callback A function or method to call when sanitizing `$meta_key` data.
    11311131 *     @type string $auth_callback     Optional. A function or method to call when performing edit_post_meta, add_post_meta, and delete_post_meta capability checks.
    1132  *     @type bool   $show_in_rest      Whether data associated with this meta key can be considered public.
     1132 *     @type bool   $show_in_rest      Whether data associated with this meta key can be considered public and
     1133 *                                     should be accessible via the REST API. A custom post type must also declare
     1134 *                                     support for custom fields for registered meta to be accessible via REST.
    11331135 * }
    11341136 * @param string|array $deprecated Deprecated. Use `$args` instead.
Note: See TracChangeset for help on using the changeset viewer.