bp_media_messages_delete_gif_data( int $thread_id, array $message_ids )

Delete gif attached to thread messages.

Description

Parameters

$thread_id

(Required) ID of the thread being deleted.

$message_ids

(Required) IDs of messages being deleted.

Source

File: bp-media/bp-media-filters.php

function bp_media_messages_delete_gif_data( $thread_id, $message_ids ) {

	if ( ! empty( $message_ids ) ) {
		foreach ( $message_ids as $message_id ) {
			bp_messages_update_meta( $message_id, '_gif_data', '' );
			bp_messages_update_meta( $message_id, '_gif_raw_data', '' );

		}
	}
}

Changelog

Changelog
Version Description
BuddyBoss 1.2.9 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.