Activity_Meta::delete_metadata( int $object_id, string $meta_key, mixed $meta_value = '' )

Wrapper method for delete_metadata that can be overridden in sub classes.

Parameters Parameters


(int) (Required) ID of the object metadata is for


(string) (Required) Metadata key


(mixed) (Optional) Metadata value. Must be serializable if non-scalar. If specified, only delete metadata entries with this value. Otherwise, delete all entries with the specified meta_key. Pass null,false`, or an empty string to skip this check. For backward compatibility, it is not possible to pass an empty string to delete those entries with an empty string for a value.

Default value: ''

Top ↑

Return Return

(bool) True on successful delete, false on failure.

Source Source

File: cli/src/activity-meta.php

	protected function delete_metadata( $object_id, $meta_key, $meta_value = '' ) {
		return bp_activity_delete_meta( $object_id, $meta_key, $meta_value );

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.