Glossary Term
delete_user_meta()
delete_user_meta() — Removes metadata matching criteria from a user. You can match based on the key, or key and value. Removing based on key and value, will keep from removing duplicate metadata with the same key. It also allows removing all metadata matching key, if needed. For historical reasons both the meta key and the meta value are expected to be “slashed” (slashes escaped) on input.
Inputs: $user_id (int): User ID $meta_key (string): Metadata name. $meta_value (mixed): Optional. Metadata value. If provided, rows will only be removed that match the value. Must be serializable if non-scalar. Default empty.
Returns bool: True on success, false on failure.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
