diff --git a/src/wp-includes/meta.php b/src/wp-includes/meta.php index cfb9d95a9e..a9e8f987f9 100644 --- a/src/wp-includes/meta.php +++ b/src/wp-includes/meta.php @@ -974,6 +974,7 @@ function sanitize_meta( $meta_key, $meta_value, $object_type ) { * Data used to describe the meta key when registered. * * @type string $type The type of data associated with this meta key. + * Valid values are 'string', 'boolean', 'integer', and 'number'. * @type string $description A description of the data attached to this meta key. * @type bool $single Whether the meta key has one value per object, or an array of values per object. * @type string $sanitize_callback A function or method to call when sanitizing `$meta_key` data. diff --git a/src/wp-includes/option.php b/src/wp-includes/option.php index 8bc8edc932..9f7cc8698e 100644 --- a/src/wp-includes/option.php +++ b/src/wp-includes/option.php @@ -1871,6 +1871,7 @@ function register_initial_settings() { * Data used to describe the setting when registered. * * @type string $type The type of data associated with this setting. + * Valid values are 'string', 'boolean', 'integer', and 'number'. * @type string $description A description of the data attached to this setting. * @type callable $sanitize_callback A callback function that sanitizes the option's value. * @type bool $show_in_rest Whether data associated with this setting should be included in the REST API.