messages_before_delete_thread, $thread_ids, $user_id

messages_before_delete_thread, $thread_ids, $user_id

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: buddypress.14.5.2

do_action('messages_before_delete_thread, $thread_ids, $user_id') is found 1 times:

  • /bp-messages/bp-messages-functions.php line 279

    *
    * @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( ‘messages_before_delete_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::delete( $thread_ids[ $i ], $user_id ) ) { $error = 1; [/php]