bp_messages_before_exit_thread, $thread_ids, $user_id
bp_messages_before_exit_thread, $thread_ids, $user_id
Appears in: buddypress.14.5.2
Hook Type: action
Displaying hooks found in version: buddypress.14.5.2do_action('bp_messages_before_exit_thread, $thread_ids, $user_id') is found 1 times:
- /bp-messages/bp-messages-functions.php line 836
*
* @param int|array $thread_ids Thread ID or array of thread IDs to be deleted.
* @param int $user_id ID of the user the threads are being deleted for.
*/
do_action( ‘bp_messages_before_exit_thread’, $thread_ids, $user_id );if ( is_array( $thread_ids ) ) {
$error = 0;
for ( $i = 0, $count = count( $thread_ids ); $i < $count; ++$i ) { if ( ! BP_Messages_Thread::exit_thread( $thread_ids[ $i ], $user_id ) ) { $error = 1; [/php]