update_metadata_by_mid
update_metadata_by_mid ( $meta_type, $meta_id, $meta_value, $meta_key = false )
Parameters:- (string) meta_type Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', or any other object type with an associated meta table.
- (int) meta_id ID for a specific meta row.
- (string) meta_value Metadata value. Must be serializable if non-scalar.
- (string|false) meta_key Optional. You can provide a meta key to update it. Default false.
Returns:- (bool) True on successful update, false on failure.
Defined at: - Introduced in WordPress: 3.3.0
- Deprecated in WordPress: —
Description
Updates metadata by meta ID.