A WordPress-centric search engine for devs and theme authors



wp-includes/meta.php ›

Functions24
Core Metadata API


Function Short description
add_metadataAdds metadata for the specified object.
delete_metadataDeletes metadata for the specified object.
delete_metadata_by_midDeletes metadata by meta ID.
filter_default_metadataFilters into default_{$object_type}_metadata and adds in default value.
get_metadataRetrieves the value of a metadata field for the specified object type and ID.
get_metadata_by_midRetrieves metadata by meta ID.
get_metadata_defaultRetrieves default metadata value for the specified meta key and object.
get_metadata_rawRetrieves raw metadata value for the specified object.
get_meta_sqlGiven a meta query, generates SQL clauses to be appended to a main query.
get_object_subtypeReturns the object subtype for a given object ID of a specific type.
get_registered_metadataRetrieves registered metadata for a specified object.
get_registered_meta_keysRetrieves a list of registered meta keys for an object type.
is_protected_metaDetermines whether a meta key is considered protected.
metadata_existsDetermines if a meta field with the given key exists for the given object ID.
registered_meta_key_existsChecks if a meta key is registered.
register_metaRegisters a meta key.
sanitize_metaSanitizes meta value.
unregister_meta_keyUnregisters a meta key from the list of registered keys.
update_metadataUpdates metadata for the specified object. If no value already exists for the specified object ID and metadata key, the metadata will be added.
update_metadata_by_midUpdates metadata by meta ID.
update_meta_cacheUpdates the metadata cache for the specified objects.
wp_metadata_lazyloaderRetrieves the queue for lazy-loading metadata.
_get_meta_tableRetrieves the name of the metadata table for the specified object type.
_wp_register_meta_args_allowed_listFilters out `register_meta()` args based on an allowed list.