bp_group_messages_delete_meta( $thread_id,  $message_ids )

Remove the meta if thread is deleted.

Description

Parameters

$thread_id

(Required)

$message_ids

(Required)

Source

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

1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
function bp_group_messages_delete_meta( $thread_id, $message_ids ) {
 
    if ( false === bp_disable_group_messages() ) {
        return;
    }
 
    if ( ! empty( $message_ids ) ) {
        foreach ( $message_ids as $message_id ) {
            if ( bp_loggedin_user_id() === messages_get_message_sender( $message_id ) ) {
                bp_messages_delete_meta( $message_id );
            }
        }
    }
 
}

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.