Make WordPress Core


Ignore:
Timestamp:
05/10/2017 06:09:36 AM (8 years ago)
Author:
rmccue
Message:

Options/Meta: Document valid types for registration.

In 4.7, the REST API introduced types for options and meta passed into the registration functions. This adds the documentation for those types.

Props iandunn, priyankabehera155.
Fixes #40318.

File:
1 edited

Legend:

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

    r39066 r40603  
    975975 *
    976976 *     @type string $type              The type of data associated with this meta key.
     977 *                                     Valid values are 'string', 'boolean', 'integer', and 'number'.
    977978 *     @type string $description       A description of the data attached to this meta key.
    978979 *     @type bool   $single            Whether the meta key has one value per object, or an array of values per object.
Note: See TracChangeset for help on using the changeset viewer.