Activity_Meta::update_metadata( int $object_id, string $meta_key, mixed $meta_value, mixed $prev_value = '' )
Wrapper method for update_metadata that can be overridden in sub classes.
Description Description
Parameters Parameters
- $object_id
 - 
					
(Required) ID of the object the metadata is for.
 - $meta_key
 - 
					
(Required) Metadata key to use.
 - $meta_value
 - 
					
(Required) Metadata value. Must be serializable if non-scalar.
 - $prev_value
 - 
					
(Optional) If specified, only update existing metadata entries with the specified value. Otherwise, update all entries.
Default value: ''
 
Return Return
(int|bool) Meta ID if the key didn't exist, true on successful update, false on failure.
Source Source
File: cli/src/activity-meta.php