wpseek.com
A WordPress-centric search engine for devs and theme authors
wp-includes/meta.php › WordPress File
Functions24
› Core Metadata API
Function | Short description |
---|---|
add_metadata | Adds metadata for the specified object. |
delete_metadata | Deletes metadata for the specified object. |
delete_metadata_by_mid | Deletes metadata by meta ID. |
filter_default_metadata | Filters into default_{$object_type}_metadata and adds in default value. |
get_metadata | Retrieves the value of a metadata field for the specified object type and ID. |
get_metadata_by_mid | Retrieves metadata by meta ID. |
get_metadata_default | Retrieves default metadata value for the specified meta key and object. |
get_metadata_raw | Retrieves raw metadata value for the specified object. |
get_meta_sql | Given a meta query, generates SQL clauses to be appended to a main query. |
get_object_subtype | Returns the object subtype for a given object ID of a specific type. |
get_registered_metadata | Retrieves registered metadata for a specified object. |
get_registered_meta_keys | Retrieves a list of registered metadata args for an object type, keyed by their meta keys. |
is_protected_meta | Determines whether a meta key is considered protected. |
metadata_exists | Determines if a meta field with the given key exists for the given object ID. |
registered_meta_key_exists | Checks if a meta key is registered. |
register_meta | Registers a meta key. |
sanitize_meta | Sanitizes meta value. |
unregister_meta_key | Unregisters a meta key from the list of registered keys. |
update_metadata | Updates 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_mid | Updates metadata by meta ID. |
update_meta_cache | Updates the metadata cache for the specified objects. |
wp_metadata_lazyloader | Retrieves the queue for lazy-loading metadata. |
_get_meta_table | Retrieves the name of the metadata table for the specified object type. |
_wp_register_meta_args_allowed_list | Filters out `register_meta()` args based on an allowed list. |