A WordPress-centric search engine for devs and theme authors



wp-includes/meta.php ›

Functions21
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.
get_metadataRetrieves metadata for the specified object.
get_metadata_by_midRetrieves metadata by meta ID.
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 key is set for a given object.
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_whitelistFilters out `register_meta()` args based on a whitelist.