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) 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:

Description

Updates metadata by meta ID.

Related Functions

delete_metadata_by_mid, get_metadata_by_mid, update_metadata, update_meta, delete_metadata

Top Google Results

User discussions

wpseek mobile