messages_before_delete_thread

  • do_action( 'messages_before_delete_thread', $thread_ids )

    Source Reference:

    • Component: BuddyPress:: bp-messages
      File: /bp-messages/bp-messages-functions.php :: Trac Source Line: 141
      		$notice->save(); // send it.
      
      		do_action_ref_array( 'messages_send_notice', array( $subject, $message ) );
      
      		return true;
      	}
      }
      
      function messages_delete_thread( $thread_ids ) {
      	do_action( 'messages_before_delete_thread', $thread_ids );
      
      	if ( is_array( $thread_ids ) ) {
      		$error = 0;
      		for ( $i = 0, $count = count( $thread_ids ); $i < $count; ++$i ) {
      			if ( !$status = BP_Messages_Thread::delete( $thread_ids[$i]) )
      				$error = 1;
      		}
      
      		if ( !empty( $error ) )
      			return false;
      

Comments are closed.