Used By
Used By | Description |
---|---|
wp-includes/meta.php: add_metadata() | Adds metadata for the specified object. |
Short-circuits adding metadata of a specific type.
The dynamic portion of the hook, $meta_type
, refers to the meta object type (post, comment, term, user, or any other type with an associated meta table). Returning a non-null value will effectively short-circuit the function.
(null|bool) Whether to allow adding metadata for the given type.
(int) ID of the object metadata is for.
(string) Metadata key.
(mixed) Metadata value. Must be serializable if non-scalar.
(bool) Whether the specified meta key should be unique for the object.
File: wp-includes/meta.php
Version | Description |
---|---|
3.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/add_meta_type_metadata