Filters the default metadata value for a specified meta key and object.
The dynamic portion of the hook name, $meta_type, refers to the meta object type (post, comment, term, user, or any other type with an associated meta table).
Possible filter names include:
default_post_metadatadefault_comment_metadatadefault_term_metadatadefault_user_metadata$valuemixed
$single.$object_idint
$meta_keystring
$singlebool
$meta_key.$meta_typestring
'post', 'comment', 'term', 'user', or any other object type with an associated meta table.$value = apply_filters( "default_{$meta_type}_metadata", $value, $object_id, $meta_key, $single, $meta_type );
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/default_meta_type_metadata